diff --git a/product/ERP5Type/patches/PropertyManager.py b/product/ERP5Type/patches/PropertyManager.py index e47bb1264f02e260727202673acf188d425fa5d5..517237449dd531de743bd20d4b51f89ca91066ab 100644 --- a/product/ERP5Type/patches/PropertyManager.py +++ b/product/ERP5Type/patches/PropertyManager.py @@ -92,7 +92,7 @@ def PropertyManager_setProperty(self, id, value, type=None): elif isinstance(value, float): type = 'float' elif isinstance(value, basestring): - if len(value_type.split('\n')) > 1: + if len(value.split('\n')) > 1: type = 'text' else: type = 'string'