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:
holivier
2020-05-29 11:48:25 +02:00
parent 6e845ccfc4
commit 88f87f27f0
@@ -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");