You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2008/05/02 01:39:51 UTC
svn commit: r652712 -
/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java
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) {