Commit 642eaeba authored by Rafael Monnerat's avatar Rafael Monnerat

Use 0 as a default version.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42137 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92da0d09
......@@ -65,7 +65,7 @@ class RuleConfiguratorItem(ConfiguratorItemMixin, XMLObject):
sort_order='descending',
reference=reference)
if len(result):
value['version'] = int(result[0].getVersion()) + 1
value['version'] = int(result[0].getVersion(0)) + 1
rule = portal.portal_rules.newContent(**value)
content_list = value.pop('content_list')
......
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