Commit 534cd333 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not add '_list' to the getProperty argument if '_list' already exists.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35042 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5971787a
...@@ -74,7 +74,10 @@ class CategoryDivergenceTester(PropertyDivergenceTester): ...@@ -74,7 +74,10 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
simulation_movement_getProperty = simulation_movement.getMappedProperty simulation_movement_getProperty = simulation_movement.getMappedProperty
for tested_property_id, tested_property_title in \ for tested_property_id, tested_property_title in \
self._splitStringList(tested_property): self._splitStringList(tested_property):
if not tested_property_id.endswith('_list'):
list_prop = '%s_list' % tested_property_id list_prop = '%s_list' % tested_property_id
else:
list_prop = tested_property_id
message = None message = None
delivery_mvt_category_list = delivery_mvt_getProperty(list_prop) delivery_mvt_category_list = delivery_mvt_getProperty(list_prop)
simulation_category_list = simulation_movement_getProperty(list_prop) simulation_category_list = simulation_movement_getProperty(list_prop)
......
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