daledotshan/liferay-portal — pull request #2 by yuhai (2013-04-07 07:41:29+00:00)
Title: LPS-34180 Cannot publish web content added via a WCD where scoped to pag...

...e and controlled via team permissions

The issue can't reproduce in trunk. Because in trunk, go to Control Panel->Web Content, there is not Permission button existed. However, the issue can reproduce in 6.1.x. I think we missed the function "Permission" in trunk. If the Permission button existed in trunk, the issue can be reproduced in trunk.

When we set scoped to page in WCD(portletId=56_***), and then we click add web content in WCD, the add page will display in WC(portletId=15). In 47 lines of edit_article.jsp, please refer the below code:
###
long groupId = BeanParamUtil.getLong(article, request, "groupId", scopeGroupId);
###
//when new add web content, if request inlcudes param "groupId", it will use "groupId" in //request, the situation will occur when click add web content in WCD. Please refer the //below code in 351 lines of html\portlet\journal_content\view.jsp
###

###

So we should use groupId instead of scopeGroupId. Please help check it.