Details
Description
To reproduce that error:
1.Customize your page so that it contains Weather portlet (or any derived) and
at least one other portlet (for more informative example, two others)
2.Click "Minimize" on any non-weather portlet
3.Click "Minimize" on second non-weather portlet
Expected result:
Minimized portlets remain minimized.
Real result:
Previously minimized portlet is displayed in normal mode again. (Alternatively
to minimizing two portlets, you may minimize one, switch to another pane, move
back to the first pane. The results will be identical.)
Here is what I have learned from my investigation:
1. The reason is, that current user's PSML is written by "Minimize" action and
then overwritten with invalid (old) content by buildNormalContext method of
WeatherAction class
2. The line of code that is causing problem:
PortletConfigState.setInstanceParameter(portlet, rundata, WEATHER_CITY_INFO,
cityInfo);
I think that the above line is excessive, and somewhat incompatible
with general JS patterns.