Commit 4c5ea6e6 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Update changeSQLConnectionIds to update in ERP5 SQL Methods

parent 86f7f797
...@@ -368,7 +368,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -368,7 +368,7 @@ class ZCatalog(Folder, Persistent, Implicit):
security.declarePrivate('changeSQLConnectionIds') security.declarePrivate('changeSQLConnectionIds')
def changeSQLConnectionIds(self, folder, sql_connection_id_dict): def changeSQLConnectionIds(self, folder, sql_connection_id_dict):
if sql_connection_id_dict is not None: if sql_connection_id_dict is not None:
if folder.meta_type == 'Z SQL Method': if folder.meta_type in ['Z SQL Method', 'ERP5 SQL Method']:
connection_id = folder.connection_id connection_id = folder.connection_id
if connection_id in sql_connection_id_dict: if connection_id in sql_connection_id_dict:
folder.connection_id = sql_connection_id_dict[connection_id] folder.connection_id = sql_connection_id_dict[connection_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