Author: lektran
Date: Thu Jun 12 23:45:42 2008
New Revision: 667385
URL:
http://svn.apache.org/viewvc?rev=667385&view=revLog:
Fix for bug reported by Vikas Mayur on the dev list
Modified:
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java
Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java?rev=667385&r1=667384&r2=667385&view=diff==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/EmptyCondition.java Thu Jun 12 23:45:42 2008
@@ -39,8 +39,13 @@
public EmptyCondition(Element element, SimpleMethod simpleMethod) {
this.simpleMethod = simpleMethod;
+ // NOTE: this is still supported, but is deprecated
this.mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
- this.fieldAcsr = new ContextAccessor(element.getAttribute("field-name"));
+ this.fieldAcsr = new ContextAccessor(element.getAttribute("field"));
+ if (this.fieldAcsr.isEmpty()) {
+ // NOTE: this is still supported, but is deprecated
+ this.fieldAcsr = new ContextAccessor(element.getAttribute("field-name"));
+ }
}
public boolean checkCondition(MethodContext methodContext) {