Commit 66424eff authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix a condition, thanks to Julien.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39114 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ddc792f
...@@ -412,7 +412,7 @@ class TemplateTool (BaseTool): ...@@ -412,7 +412,7 @@ class TemplateTool (BaseTool):
value = None value = None
if prop_type in ('text', 'string'): if prop_type in ('text', 'string'):
prop_dict[pid] = value or '' prop_dict[pid] = value or ''
if prop_type in ('text', 'string', 'int', 'boolean'): elif prop_type in ('int', 'boolean'):
prop_dict[pid] = value or 0 prop_dict[pid] = value or 0
elif prop_type in ('lines', 'tokens'): elif prop_type in ('lines', 'tokens'):
prop_dict[pid[:-5]] = (value or '').splitlines() prop_dict[pid[:-5]] = (value or '').splitlines()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment