Fixed: ComponentConfig::getAppBarWebInfos creates infos only for components

without <<app-bar-display="false">>
(OFBIZ-10637)

LoginWorked::getAppBarWebInfos is used to define the apps menus in themes so we
need to also check that no menuName is passed to 
ComponentConfig::getAppBarWebInfos. Else all menus appears in the secondary menu
bars


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2018-11-02 08:48:31 +00:00
parent da591d600d
commit a1e28bf1e2
@@ -216,7 +216,7 @@ public final class ComponentConfig {
} else {
tm.put(key, wInfo);
}
} if (!wInfo.getAppBarDisplay()) {
} if (!wInfo.getAppBarDisplay() && UtilValidate.isEmpty(menuName)) {
tm.put(key, wInfo);
}
}