Steps to reproduce
- Deploy the attached sample-layout-template-7.2.war which has two embedded portlets
- Create a /page1 in the default site and apply the sample-layout-template to it.
- Go to the /page1 and check that the embedded portlets are displayed (important this steep is mandatory in order to precreate the configuration/preferences for that portlets in data base)
- From Control Panel > Server Administration > Script, run the attached groovy script.
Observed: layout.isPortletEmbedded is returning false for both embedded portlets
Expected: layout.isPortletEmbedded is returning true for both embedded portlets