moltam89/liferay-portal — pull request #12 by lipusz (2013-01-22 15:34:08+00:00)
Title: [TECHNICAL-SUPPORT] LPS-32352 Fix category search in Asset Pusblisher configuration - Global category is never found in Select pop-up

Hey Tamás,

As you can see, the current logic is to pass "scopeGroupId" only to Liferay.AssetCategoriesSelector() in portal-web/docroot/html/taglib/asset_category_selector/page.jsp, line 140.

However, the select-pop-up contains scope and global categories on show, when you try to search for a global one, you will see nothing. It is because the "_searchCategories" function in "asset_categories_selector.js" uses only one groupId: the "scopeGroupId".

I have modified the logic to have the global groupId as well. I also have needed to create a new getJSONSearch() method to pass long[] groupIds array.

Please, review my changes and let me know if you have any questions.

Thanks,
Tibor