patch: Side Panel layouts were not generating

This commit is contained in:
Shariq Ansari 2025-01-03 01:58:06 +05:30
parent 76616cb02d
commit 3dc7a254b1
2 changed files with 2 additions and 2 deletions

View File

@ -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
crm.patches.v1_0.update_layouts_to_new_format

View File

@ -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)