ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r616634 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java
Date Wed, 30 Jan 2008 05:33:30 GMT
Author: adrianc
Date: Tue Jan 29 21:33:30 2008
New Revision: 616634

URL: http://svn.apache.org/viewvc?rev=616634&view=rev
Log:
Removed the adjuster requirement from the new set-calendar simple method operation. Having
thought about it more, I realized the operation could be used just to align a date to a period
start or end, without using an adjuster.

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java?rev=616634&r1=616633&r2=616634&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java Tue
Jan 29 21:33:30 2008
@@ -82,12 +82,6 @@
         if (!this.fromField.isEmpty() && !this.valueExdr.isEmpty()) {
             throw new IllegalArgumentException("Cannot specify a from-field [" + element.getAttribute("from-field")
+ "] and a value [" + element.getAttribute("value") + "] on the set-calendar action in a screen
widget");
         }
-        if (this.yearsExdr.isEmpty() && this.monthsExdr.isEmpty() &&
-                this.daysExdr.isEmpty() && this.hoursExdr.isEmpty() && this.minutesExdr.isEmpty()
&&
-                this.secondsExdr.isEmpty() && this.millisExdr.isEmpty() &&
-                this.periodAlignStart.isEmpty() && this.periodAlignEnd.isEmpty())
{
-            throw new IllegalArgumentException("At least one adjuster must be specified");
-        }
     }
 
     public boolean exec(MethodContext methodContext) {



Mime
View raw message