From 49150eeb422a9442b7c8d5730e44a9970ce823ef Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 27 Feb 2007 13:31:24 +0000 Subject: [PATCH] Fix type error bug. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13075 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/DurationField.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Form/DurationField.py b/product/ERP5Form/DurationField.py index 1ce2f9a381..1577ad1b03 100644 --- a/product/ERP5Form/DurationField.py +++ b/product/ERP5Form/DurationField.py @@ -105,7 +105,7 @@ class DurationValidator(Validator.FloatValidator): validation=1, key=key), REQUEST ) - if sub_field_value is not None: + if sub_field_value not in (None, ''): if second_value is not None: second_value += sub_field_value * convertion else: -- 2.30.9