From 5c209272e49b943426b230c03651b93f1909cad9 Mon Sep 17 00:00:00 2001 From: Saeed Kola Date: Wed, 9 Oct 2024 17:23:37 +0530 Subject: [PATCH 1/3] fix: Link field filters --- crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py index fd37fba6c..739bde82f 100644 --- a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py +++ b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py @@ -45,6 +45,7 @@ def get_fields_layout(doctype: str, type: str): "options": field.options, "mandatory": field.reqd, "placeholder": field.get("placeholder"), + "filters": field.get("link_filters") } section["fields"][section.get("fields").index(field["name"])] = field From fbab391b18957cd6f62b07982ff13a673812b463 Mon Sep 17 00:00:00 2001 From: pu-raihan Date: Fri, 11 Oct 2024 13:48:10 +0530 Subject: [PATCH 2/3] fix: check for options in if fieldtype select in fields_layout --- crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py index fd37fba6c..a5a4dd7bb 100644 --- a/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py +++ b/crm/fcrm/doctype/crm_fields_layout/crm_fields_layout.py @@ -34,7 +34,7 @@ def get_fields_layout(doctype: str, type: str): for field in section.get("fields") if section.get("fields") else []: field = next((f for f in fields if f.fieldname == field), None) if field: - if field.fieldtype == "Select": + if field.fieldtype == "Select" and field.options: field.options = field.options.split("\n") field.options = [{"label": _(option), "value": option} for option in field.options] field.options.insert(0, {"label": "", "value": ""}) From 7a384336ed81621f1a9f06bfcbac350b6d069575 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 11 Oct 2024 13:50:13 +0530 Subject: [PATCH 3/3] fix: Added content type instead of use html checkbox --- .../components/Modals/EmailTemplateModal.vue | 42 ++++++++++++++----- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/Modals/EmailTemplateModal.vue b/frontend/src/components/Modals/EmailTemplateModal.vue index 053383881..c00cdbc61 100644 --- a/frontend/src/components/Modals/EmailTemplateModal.vue +++ b/frontend/src/components/Modals/EmailTemplateModal.vue @@ -50,13 +50,25 @@ :placeholder="__('Payment Reminder from Frappé - (#{{ name }})')" /> +
+
+ {{ __('Content Type') }} +
+