-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE, 7.0.X EE, Master
-
Fix Version/s: 6.2.X EE, 7.0.0 DXP FP28, 7.0.X EE, 7.0.4 CE GA5, 7.1.X, Master
-
Component/s: ~ [Archived] Frontend Infrastructure
-
Branch Version/s:7.0.x, 6.2.x
-
Backported to Branch:Committed
-
Fix Priority:5
-
Git Pull Request:
Steps to Reproduce
- Sign in as an administrator user
- Navigate to http://localhost:8080/web/guest/home
- Expand the product menu, and click on Liferay > Navigation > Public Pages, click on the "..." next to Welcome, and choose "Configure Page"
- Select the advanced tab and paste in the following into the Javascript section:
Liferay.on('allPortletsReady', function(x) { alert('Event fired!'); });
- After saving, note that you get an alert saying "Event fired!"
- Navigate to http://localhost:8080/web/guest/home
- Note that after navigating, you get an alert saying "Event fired!"
- Sign out.
Expected behavior is that the 'allPortletsReady' event will continue to fire. Actual behavior is that the event stops firing after you've signed out.
In this case, it appears as though the problem is that the administrator user visiting the page caused the Product Menu Portlet to become an embedded portlet on the page and is added to Liferay.Portlet.list.
As a result, the 'allPortletsReady' event will not fire for guest users visiting the page.
- is duplicated by
-
LPS-53765 allPorletsReady event isn't triggered when embedded portlets aren't rendered in the page
- Closed
-
LPS-68295 Control panel prevents 'allPortletsReady' event from firing for guest users
- Closed
- relates
-
LPE-13428 Liferay does not fire allPortletsReady event for non-admin users if admin user accesses product menu portlet
-
- Closed
-