Fixed: fix tag "disable-if-empty" in menus if field has no value (OFBIZ-9377)
Thanks Gaudin Pierre and Humera Khan for your contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801336 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ public class MacroMenuRenderer implements MenuStringRenderer {
|
||||
List<String> keys = StringUtil.split(disableIfEmpty, "|");
|
||||
for (String key : keys) {
|
||||
Object obj = context.get(key);
|
||||
if (obj == null) {
|
||||
if (UtilValidate.isEmpty(obj)) {
|
||||
disabled = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user