brianchandotcom/liferay-portal — pull request #13570 by epgarcia (2013-09-04 11:11:59+00:00)
Title: LPS-39178 Asset Link Behaviour is not working for portlets on pages in User Groups' Site Template

Hey Brian,

You were right at your comment in brianchandotcom/liferay-portal#13535. As of LPS-23509 it must be checked that primaryKey > 0 to prevent exceptions. The second call to getGroupId() was therefore not only redundant but may also cause errors.

Thanks!