svn commit: r652712 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/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: r652712 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java

adrianc
Author: adrianc
Date: Thu May  1 16:39:51 2008
New Revision: 652712

URL: http://svn.apache.org/viewvc?rev=652712&view=rev
Log:
Fixup for previous commit.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java?rev=652712&r1=652711&r2=652712&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java Thu May  1 16:39:51 2008
@@ -438,7 +438,11 @@
      * @return
      */
     public String getSelectedMenuItemContextFieldName(Map context) {
-        return (String)this.selectedMenuItemContextFieldName.get(context);
+        String menuItemName = (String)this.selectedMenuItemContextFieldName.get(context);
+        if (UtilValidate.isEmpty(menuItemName)) {
+            return this.defaultMenuItemName;
+        }
+        return menuItemName;
     }
 
     public String getCurrentMenuName(Map context) {