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:
Deepak Dixit
2017-07-08 22:54:06 +00:00
parent 44c0caa799
commit e95c7eb261
@@ -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;
}