diff --git a/crm/patches.txt b/crm/patches.txt index e30c693a..f964d13f 100644 --- a/crm/patches.txt +++ b/crm/patches.txt @@ -9,4 +9,4 @@ crm.patches.v1_0.create_email_template_custom_fields crm.patches.v1_0.create_default_fields_layout #10/12/2024 crm.patches.v1_0.create_default_sidebar_fields_layout crm.patches.v1_0.update_deal_quick_entry_layout -crm.patches.v1_0.update_fields_layout_to_new_format \ No newline at end of file +crm.patches.v1_0.update_layouts_to_new_format \ No newline at end of file diff --git a/crm/patches/v1_0/update_fields_layout_to_new_format.py b/crm/patches/v1_0/update_layouts_to_new_format.py similarity index 98% rename from crm/patches/v1_0/update_fields_layout_to_new_format.py rename to crm/patches/v1_0/update_layouts_to_new_format.py index a720339d..70cf9b61 100644 --- a/crm/patches/v1_0/update_fields_layout_to_new_format.py +++ b/crm/patches/v1_0/update_layouts_to_new_format.py @@ -95,7 +95,7 @@ def get_new_layout(old_layout, type): if already_converted: new_layout = old_layout - if type == "Side Panel" and "sections" in old_layout[0]: + if type == "Side Panel" and "sections" in new_layout[0]: new_layout = new_layout[0].get("sections") return json.dumps(new_layout)