jonathanmccann/liferay-portal — pull request #463 by yuhai (2014-10-02 05:31:56+00:00)
Title: LPS-50542  Like grammar is not correct in OrganizationLocalServiceUtil.hasUserOrganization() method

The isssue was caused by incorrectly sql like grammar.

Incorrect: where Organization_.treePath LIKE %/organization.getOrganizationId()/%

Correct: where Organization_.treePath LIKE '%/organization.getOrganizationId()/%'

The original sql missed single quotes.

Please help check the issue.

Thanks,
Hai