From d83bdfe119e299d99b31461d1c2c84a24dac625b Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 23 Mar 2022 14:13:55 +0530 Subject: [PATCH] fix: Custom field highlight goes away when change grid page --- frappe/custom/doctype/customize_form/customize_form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/custom/doctype/customize_form/customize_form.js b/frappe/custom/doctype/customize_form/customize_form.js index 9cfe315e44..ade68a582b 100644 --- a/frappe/custom/doctype/customize_form/customize_form.js +++ b/frappe/custom/doctype/customize_form/customize_form.js @@ -49,6 +49,10 @@ frappe.ui.form.on("Customize Form", { if (grid_row.doc && grid_row.doc.fieldtype == "Section Break") { $(grid_row.row).css({ "font-weight": "bold" }); } + + if (grid_row.doc.is_custom_field && !grid_row.row.hasClass('highlight')) { + grid_row.row.addClass("highlight"); + } }); $(frm.wrapper).on("grid-make-sortable", function(e, frm) {