svn commit: r1801209 - /ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1801209 - /ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java

mbrohl
Author: mbrohl
Date: Fri Jul  7 20:26:40 2017
New Revision: 1801209

URL: http://svn.apache.org/viewvc?rev=1801209&view=rev
Log:
Fixed: wrong assignment of the "default-hide-if-selected" attribute.

Modified:
    ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java

Modified: ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java?rev=1801209&r1=1801208&r2=1801209&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenu.java Fri Jul  7 20:26:40 2017
@@ -228,7 +228,7 @@ public class ModelMenu extends ModelWidg
         if (!menuElement.getAttribute("default-cell-width").isEmpty())
             defaultCellWidth = menuElement.getAttribute("default-cell-width");
         if (!menuElement.getAttribute("default-hide-if-selected").isEmpty())
-            defaultHideIfSelected = "true".equals(menuElement.getAttribute("default-hide-if-selected").isEmpty());
+            defaultHideIfSelected = "true".equals(menuElement.getAttribute("default-hide-if-selected"));
         if (!menuElement.getAttribute("default-disabled-title-style").isEmpty())
             defaultDisabledTitleStyle = menuElement.getAttribute("default-disabled-title-style");
         if (!menuElement.getAttribute("selected-menuitem-context-field-name").isEmpty())