Commit 1c1d4175 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a bug in _checkConsistency, so that it won't add the same

value into predicate_value_list or categories_list more than once.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@804 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 912b114a
......@@ -544,9 +544,11 @@ identify a bank account."""
for p in kw:
if p is not None:
if p in transformation_category_list:
predicate_value_list.append(p)
if p not in predicate_value_list:
predicate_value_list.append(p)
else:
categories_list.append(p)
if p not in categories_list:
categories_list.append(p)
q_constraint.edit(predicate_value_list = predicate_value_list,
categories_list = categories_list)
if fixit:
......
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