Commit b78fb010 authored by Ayush Tiwari's avatar Ayush Tiwari

Update item_path_list in Business Mangager only when manager is already set

parent b07a8646
...@@ -737,7 +737,8 @@ class BusinessItem(XMLObject): ...@@ -737,7 +737,8 @@ class BusinessItem(XMLObject):
# Update the Business Manager with the path list everytime after editing # Update the Business Manager with the path list everytime after editing
# item_path # item_path
manager = self.getFollowUpValue() manager = self.getFollowUpValue()
# Check if the manager has already been set or not
if manager:
# Copy the path list for Business Manager and update it with new path # Copy the path list for Business Manager and update it with new path
item_path_list = manager.getItemPathList()[:] item_path_list = manager.getItemPathList()[:]
old_item_path = self._v_modified_property_dict.get('item_path') old_item_path = self._v_modified_property_dict.get('item_path')
......
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