Author: deepak
Date: Sat Feb 24 08:31:14 2018
New Revision: 1825197
URL:
http://svn.apache.org/viewvc?rev=1825197&view=revLog:
Improved: In 'ValidateMethod.java', when we don't pass any className from xml files. default value 'org.apache.ofbiz.base.util.UtilValidate' should be set for className. (OFBIZ-9969)
Thanks Suraj Khurana and Sonal Patwari for your contribution.
Modified:
ofbiz/ofbiz-framework/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java
Modified: ofbiz/ofbiz-framework/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java?rev=1825197&r1=1825196&r2=1825197&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java Sat Feb 24 08:31:14 2018
@@ -26,6 +26,7 @@ import java.util.Map;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.GeneralException;
import org.apache.ofbiz.base.util.ObjectType;
+import org.apache.ofbiz.minilang.MiniLangValidate;
import org.w3c.dom.Element;
/**
@@ -41,7 +42,7 @@ public class ValidateMethod extends Simp
public ValidateMethod(Element element, SimpleMapProcess simpleMapProcess) {
super(element, simpleMapProcess);
this.methodName = element.getAttribute("method");
- this.className = element.getAttribute("class");
+ this.className = MiniLangValidate.checkAttribute(element.getAttribute("class"), "org.apache.ofbiz.base.util.UtilValidate");
}
@Override