Fixed problem with map-key alternative of assoc-name in the sub-content screen widget element; thanks to Scott Gray for tracking this down, and Tim Ruppert for reporting the problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493653 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2007-01-07 05:38:24 +00:00
parent a54352fd42
commit cc48bcbf8f
@@ -945,7 +945,10 @@ public abstract class ModelScreenWidget implements Serializable {
// put the text attribute first, then the pcdata under the element, if both are there of course
this.contentId = new FlexibleStringExpander(UtilFormatOut.checkNull(subContentElement.getAttribute("content-id")));
this.mapKey = new FlexibleStringExpander(UtilFormatOut.checkNull(subContentElement.getAttribute("map-key"), subContentElement.getAttribute("assoc-name")));
this.mapKey = new FlexibleStringExpander(UtilFormatOut.checkNull(subContentElement.getAttribute("map-key")));
if (this.mapKey.isEmpty()) {
this.mapKey = new FlexibleStringExpander(UtilFormatOut.checkNull(subContentElement.getAttribute("assoc-name")));
}
this.editRequest = new FlexibleStringExpander(UtilFormatOut.checkNull(subContentElement.getAttribute("edit-request")));
this.editContainerStyle = new FlexibleStringExpander(subContentElement.getAttribute("edit-container-style"));
this.enableEditName = new FlexibleStringExpander(subContentElement.getAttribute("enable-edit-name"));