liferay/liferay-portal — pull request #435 by epgarcia (2013-09-04 11:10:12+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/pull/13535. As of LPS-23509 it must be checked that primaryKey > 0 to prevent exceptions. The second call to getPortletId was therefore not only redundant but may also cause errors.

Thanks!