From 45e2361dcc7532026af26fa4b60dd8cc210addea Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 31 Mar 2022 11:58:50 +0530 Subject: [PATCH] fix(linter): Trim Trailing Whitespace --- frappe/custom/doctype/customize_form/customize_form.js | 4 ++-- frappe/custom/doctype/customize_form/customize_form.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frappe/custom/doctype/customize_form/customize_form.js b/frappe/custom/doctype/customize_form/customize_form.js index 98a4cb1fdf..4c2d207df9 100644 --- a/frappe/custom/doctype/customize_form/customize_form.js +++ b/frappe/custom/doctype/customize_form/customize_form.js @@ -52,8 +52,8 @@ frappe.ui.form.on("Customize Form", { grid_row.row.removeClass("highlight"); - if (grid_row.doc.is_custom_field && - !grid_row.row.hasClass('highlight') && + if (grid_row.doc.is_custom_field && + !grid_row.row.hasClass('highlight') && !grid_row.doc.is_system_generated) { grid_row.row.addClass("highlight"); } diff --git a/frappe/custom/doctype/customize_form/customize_form.py b/frappe/custom/doctype/customize_form/customize_form.py index 0ef812951c..5ec5cae121 100644 --- a/frappe/custom/doctype/customize_form/customize_form.py +++ b/frappe/custom/doctype/customize_form/customize_form.py @@ -68,9 +68,9 @@ class CustomizeForm(Document): for d in meta.get("fields"): new_d = { - "fieldname": d.fieldname, - "is_custom_field": d.get("is_custom_field"), - "is_system_generated": d.get("is_system_generated"), + "fieldname": d.fieldname, + "is_custom_field": d.get("is_custom_field"), + "is_system_generated": d.get("is_system_generated"), "name": d.name } for prop in docfield_properties: