fixed: sort-order (field) not works in CompoundWidgets file (OFBIZ-11708)
In a form, when <sort-order tag is used, the children analyze not works because, getTagName() is used not the getLocalName(). getTagName() return "wf:sort-field" when getLocalName return "sort-field". So change getTagName() to getLocalName() for sort-order children
This commit is contained in:
@@ -644,7 +644,7 @@ public abstract class ModelForm extends ModelWidget {
|
||||
fieldGroupList.add(lastFieldGroup);
|
||||
// read in sort-field
|
||||
for (Element sortFieldElement : UtilXml.childElementList(sortOrderElement)) {
|
||||
String tagName = sortFieldElement.getTagName();
|
||||
String tagName = sortFieldElement.getLocalName();
|
||||
if ("sort-field".equals(tagName)) {
|
||||
String fieldName = sortFieldElement.getAttribute("name");
|
||||
String position = sortFieldElement.getAttribute("position");
|
||||
|
||||
Reference in New Issue
Block a user