Commit d5448598 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not propagate the id as the title in case of missing the title property,...

do not propagate the id as the title in case of missing the title property, that was originally implemented in r28901.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35788 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07232094
......@@ -591,7 +591,12 @@ class Rule(Predicate, XMLObject):
default_property_list = self.getExpandablePropertyList()
for prop in default_property_list:
property_dict[prop] = movement.getProperty(prop)
# getProprety('title') returns the ID if title is not set, but we
# don't want to propagate such a value in simulation movements.
if prop in ('title',) and not movement.hasProperty(prop):
property_dict[prop] = None
else:
property_dict[prop] = movement.getProperty(prop)
# rule specific
property_dict.update(**self._getExpandablePropertyUpdateDict(applied_rule,
......
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