From 78a1b15a25ce7bbdc97ed178a1948fd3eecba557 Mon Sep 17 00:00:00 2001 From: Deepak Dixit Date: Sat, 23 Dec 2017 09:29:58 +0000 Subject: [PATCH] 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 Sonal Patwari and Suraj Khurana for your contribution git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1819126 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/ofbiz/minilang/operation/ValidateMethod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java b/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java index 0d6e7cf12a..0a3dce597d 100644 --- a/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java +++ b/framework/minilang/src/main/java/org/apache/ofbiz/minilang/operation/ValidateMethod.java @@ -41,7 +41,7 @@ public class ValidateMethod extends SimpleMapOperation { 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