Commit 135921fd authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Consider for property name which ends with list also

parent 8bb4b660
...@@ -985,6 +985,8 @@ class BusinessPropertyItem(XMLObject): ...@@ -985,6 +985,8 @@ class BusinessPropertyItem(XMLObject):
property_value = self.getProperty('item_property_value') property_value = self.getProperty('item_property_value')
# First remove the property from the existing path and keep the default # First remove the property from the existing path and keep the default
# empty, and update only if the sign is +1 # empty, and update only if the sign is +1
if property_name.endswith('_list'):
property_name = property_name[:-5]
obj._delPropValue(property_name) obj._delPropValue(property_name)
if int(self.getProperty('item_sign')) == 1: if int(self.getProperty('item_sign')) == 1:
obj.setProperty(property_name, property_value, property_type) obj.setProperty(property_name, property_value, property_type)
......
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