Author: ashish
Date: Sun Jul 3 06:46:14 2016
New Revision: 1751124
URL:
http://svn.apache.org/viewvc?rev=1751124&view=revLog:
Applied patch from jira issue - OFBIZ-7513 - alt-target tag is not working as expected in Form Widget.
Thanks Pritam for the contribution. Thanks Montalbano and Jacques for participating in discussion.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelForm.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelForm.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelForm.java?rev=1751124&r1=1751123&r2=1751124&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelForm.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelForm.java Sun Jul 3 06:46:14 2016
@@ -378,12 +378,12 @@ public abstract class ModelForm extends
}
this.paginateTarget = paginateTarget;
ArrayList<AltTarget> altTargets = new ArrayList<AltTarget>();
- if (parentModel != null) {
- altTargets.addAll(parentModel.altTargets);
- }
for (Element altTargetElement : UtilXml.childElementList(formElement, "alt-target")) {
altTargets.add(new AltTarget(altTargetElement));
}
+ if (parentModel != null) {
+ altTargets.addAll(parentModel.altTargets);
+ }
altTargets.trimToSize();
this.altTargets = Collections.unmodifiableList(altTargets);
ArrayList<ModelAction> actions = new ArrayList<ModelAction>();