juliocamarero/liferay-portal — pull request #908 by matethurzo (2012-12-11 22:35:41+00:00)
Title: LPS-31002 Get strict but not layout based portletpreferences when exporting portlets

Hey Julio,

The problem was that during the staging when the portlet preferences was returned, the code was looking for a preferences tied to a layout in strict mode. Because of the strict mode an empty object is being returned for certain portlets what are being pushed to live, but does not have a layout tied preferences and when the staging process tried to store the preferences it throw an exception because the prefs object is empty - no portletId is set up there.

This should fix the problem, because we look up the preferences not just for layouts and we also keep the strict mode.

Thanks,

Máté