From 3dc7a254b17feffda03e1cd412f2c42a93f4764b Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 3 Jan 2025 01:58:06 +0530 Subject: [PATCH] patch: Side Panel layouts were not generating --- crm/patches.txt | 2 +- ..._layout_to_new_format.py => update_layouts_to_new_format.py} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename crm/patches/v1_0/{update_fields_layout_to_new_format.py => update_layouts_to_new_format.py} (98%) 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)