Commit 978d35bb authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Do not check for new_id in catalog tool while updating the ERP5Catalog

parent ec7e3fdd
......@@ -1713,9 +1713,8 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
log(warning_message)
return
if not isinstance(sql_catalog, ERP5Catalog) and new_id \
not in catalog_tool.keys():
if not new_id in catalog_tool.objectIds():
if not isinstance(sql_catalog, ERP5Catalog):
if new_id not in catalog_tool.objectIds():
# Create new ERP5Catalog object if it doesn't exist
catalog_tool.manage_addProduct['ERP5Catalog'].manage_addERP5Catalog(
id = new_id,
......
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