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,6 +591,11 @@ class Rule(Predicate, XMLObject): ...@@ -591,6 +591,11 @@ class Rule(Predicate, XMLObject):
default_property_list = self.getExpandablePropertyList() default_property_list = self.getExpandablePropertyList()
for prop in default_property_list: for prop in default_property_list:
# 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) property_dict[prop] = movement.getProperty(prop)
# rule specific # rule specific
......
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