ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r1667492 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelScreenWidget.java
Date Wed, 18 Mar 2015 10:53:48 GMT
Author: adrianc
Date: Wed Mar 18 10:53:48 2015
New Revision: 1667492

URL: http://svn.apache.org/r1667492
Log:
Fixed a bug in screenlet widget:  If there is no Screenlet's preferenceKey in requestParameters,
the initially-collapsed always be false. https://issues.apache.org/jira/browse/OFBIZ-6172

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelScreenWidget.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelScreenWidget.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelScreenWidget.java?rev=1667492&r1=1667491&r2=1667492&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelScreenWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelScreenWidget.java Wed Mar
18 10:53:48 2015
@@ -589,7 +589,8 @@ public abstract class ModelScreenWidget
                 Map<String, Object> requestParameters = UtilGenerics.checkMap(context.get("requestParameters"));
                 if (requestParameters != null) {
                     String collapsedParam = (String) requestParameters.get(preferenceKey);
-                    collapsed = "true".equals(collapsedParam);
+                    if (collapsedParam != null)
+                        collapsed = "true".equals(collapsedParam);
                 }
             }
             try {



Mime
View raw message