[Erp5-report] r14436 - /erp5/trunk/products/ERP5Form/FormulatorPatch.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 10 00:42:26 CEST 2007


Author: yo
Date: Thu May 10 00:42:26 2007
New Revision: 14436

URL: http://svn.erp5.org?rev=14436&view=rev
Log:
Do not check datetime_out_of_range if a value is empty.

Modified:
    erp5/trunk/products/ERP5Form/FormulatorPatch.py

Modified: erp5/trunk/products/ERP5Form/FormulatorPatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/FormulatorPatch.py?rev=14436&r1=14435&r2=14436&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/FormulatorPatch.py (original)
+++ erp5/trunk/products/ERP5Form/FormulatorPatch.py Thu May 10 00:42:26 2007
@@ -998,11 +998,11 @@
 
         # check if things are within range
         start_datetime = field.get_value('start_datetime')
-        if (start_datetime is not None and
+        if (start_datetime not in (None, '') and
             result < start_datetime):
             self.raise_error('datetime_out_of_range', field)
         end_datetime = field.get_value('end_datetime')
-        if (end_datetime is not None and
+        if (end_datetime not in (None, '') and
             result >= end_datetime):
             self.raise_error('datetime_out_of_range', field)
 




More information about the Erp5-report mailing list