From a99c4ff2b0f0803bd2b625e80f4a8014ee10827f Mon Sep 17 00:00:00 2001 From: David Arnold Date: Mon, 15 Apr 2024 14:09:48 +0200 Subject: [PATCH] fix: don't sanitize defaults and options (#25939) --- frappe/core/doctype/docfield/docfield.json | 6 ++++-- frappe/custom/doctype/custom_field/custom_field.json | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frappe/core/doctype/docfield/docfield.json b/frappe/core/doctype/docfield/docfield.json index 08820719ca..4943f7a94c 100644 --- a/frappe/core/doctype/docfield/docfield.json +++ b/frappe/core/doctype/docfield/docfield.json @@ -228,6 +228,7 @@ "description": "For Links, enter the DocType as range.\nFor Select, enter list of Options, each on a new line.", "fieldname": "options", "fieldtype": "Small Text", + "ignore_xss_filter": 1, "in_list_view": 1, "label": "Options", "oldfieldname": "options", @@ -236,6 +237,7 @@ { "fieldname": "default", "fieldtype": "Small Text", + "ignore_xss_filter": 1, "label": "Default", "max_height": "3rem", "oldfieldname": "default", @@ -582,7 +584,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2024-03-23 16:02:18.210626", + "modified": "2024-04-12 16:27:34.546314", "modified_by": "Administrator", "module": "Core", "name": "DocField", @@ -592,4 +594,4 @@ "sort_field": "creation", "sort_order": "ASC", "states": [] -} \ No newline at end of file +} diff --git a/frappe/custom/doctype/custom_field/custom_field.json b/frappe/custom/doctype/custom_field/custom_field.json index 09c6fad731..abe50d0444 100644 --- a/frappe/custom/doctype/custom_field/custom_field.json +++ b/frappe/custom/doctype/custom_field/custom_field.json @@ -143,6 +143,7 @@ { "fieldname": "options", "fieldtype": "Small Text", + "ignore_xss_filter": 1, "in_list_view": 1, "label": "Options", "oldfieldname": "options", @@ -186,6 +187,7 @@ { "fieldname": "default", "fieldtype": "Text", + "ignore_xss_filter": 1, "label": "Default Value", "oldfieldname": "default", "oldfieldtype": "Text" @@ -464,7 +466,7 @@ "idx": 1, "index_web_pages_for_search": 1, "links": [], - "modified": "2024-03-23 16:02:15.143117", + "modified": "2024-04-12 16:25:50.349736", "modified_by": "Administrator", "module": "Custom", "name": "Custom Field", @@ -498,4 +500,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} \ No newline at end of file +}