Commit ec822ab6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove the first character for '-XXX' case.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33286 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb40ba44
......@@ -56,6 +56,6 @@ class PropertyMapping(XMLObject):
for x in self.getMappingPropertyList()])
mapped_property = mapping_dict.get(property, property)
if mapped_property.startswith('-'):
return -1 * document.getProperty(mapped_property)
return -1 * document.getProperty(mapped_property[1:])
else:
document.getProperty(mapped_property)
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