Author: adrianc
Date: Wed May 16 13:08:13 2012
New Revision: 1339147
URL:
http://svn.apache.org/viewvc?rev=1339147&view=revLog:
Fixed validation in Mini-language <call-service> element.
Modified:
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java
Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java?rev=1339147&r1=1339146&r2=1339147&view=diff==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java Wed May 16 13:08:13 2012
@@ -81,6 +81,7 @@ public final class CallService extends M
MiniLangValidate.attributeNames(simpleMethod, element, "serviceName", "in-map-name", "include-user-login", "break-on-error", "error-code", "require-new-transaction", "transaction-timeout", "success-code");
MiniLangValidate.constantAttributes(simpleMethod, element, "include-user-login", "break-on-error", "error-code", "require-new-transaction", "transaction-timeout", "success-code");
MiniLangValidate.expressionAttributes(simpleMethod, element, "service-name", "in-map-name");
+ MiniLangValidate.requiredAttributes(simpleMethod, element, "service-name");
MiniLangValidate.childElements(simpleMethod, element, "error-prefix", "error-suffix", "success-prefix", "success-suffix", "message-prefix", "message-suffix", "default-message", "results-to-map", "result-to-field", "result-to-request", "result-to-session", "result-to-result");
}
serviceName = element.getAttribute("service-name");