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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 11 16:39:12 CEST 2007


Author: seb
Date: Mon Jun 11 16:39:12 2007
New Revision: 14773

URL: http://svn.erp5.org?rev=14773&view=rev
Log:
make sure that the precision is not the empty string

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=14773&r1=14772&r2=14773&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/FormulatorPatch.py (original)
+++ erp5/trunk/products/ERP5Form/FormulatorPatch.py Mon Jun 11 16:39:12 2007
@@ -1141,7 +1141,7 @@
       """
       input_style = field.get_value('input_style')
       precision = field.get_value('precision')      
-      if precision != 0:
+      if precision not in (None, '') and precision != 0:
         for x in xrange(1, precision):
           input_style += '5'
       else:




More information about the Erp5-report mailing list