Author: adrianc
Date: Thu May 1 16:39:51 2008
New Revision: 652712
URL:
http://svn.apache.org/viewvc?rev=652712&view=revLog:
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) {