From 6f3aa312f72932cbb288668684a4c549ab03bd46 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Mon, 11 Jun 2007 14:39:12 +0000 Subject: [PATCH] make sure that the precision is not the empty string git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14773 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/FormulatorPatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py index 32c6c991ba..2b461d9ea2 100644 --- a/product/ERP5Form/FormulatorPatch.py +++ b/product/ERP5Form/FormulatorPatch.py @@ -1141,7 +1141,7 @@ class FloatWidget(TextWidget): """ 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: -- 2.30.9