Author: adrianc
Date: Mon May 7 12:56:36 2012
New Revision: 1334996
URL:
http://svn.apache.org/viewvc?rev=1334996&view=revLog:
Small fix for the Mini-language <set> element validation - allow scripts in the "from" attribute.
Modified:
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java
Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java?rev=1334996&r1=1334995&r2=1334996&view=diff==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java Mon May 7 12:56:36 2012
@@ -94,7 +94,7 @@ public final class SetOperation extends
MiniLangValidate.requireAnyAttribute(simpleMethod, element, "from-field", "from", "value");
MiniLangValidate.constantPlusExpressionAttributes(simpleMethod, element, "value");
MiniLangValidate.constantAttributes(simpleMethod, element, "type", "set-if-null", "set-if-empty");
- MiniLangValidate.expressionAttributes(simpleMethod, element, "field", "from-field", "from");
+ MiniLangValidate.expressionAttributes(simpleMethod, element, "field");
MiniLangValidate.noChildElements(simpleMethod, element);
}
boolean elementModified = autoCorrect(element);