From e9ba98660e0fb0e6440800e54e4705062d035f52 Mon Sep 17 00:00:00 2001 From: mbauskar Date: Sat, 11 Mar 2017 16:28:47 +0530 Subject: [PATCH] [minor] hide custom buttons in customize form if form type is not selected --- frappe/custom/doctype/customize_form/customize_form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/custom/doctype/customize_form/customize_form.js b/frappe/custom/doctype/customize_form/customize_form.js index 9b73e67ea4..6c5a34c486 100644 --- a/frappe/custom/doctype/customize_form/customize_form.js +++ b/frappe/custom/doctype/customize_form/customize_form.js @@ -45,6 +45,8 @@ frappe.ui.form.on("Customize Form", { frm.trigger("setup_sortable"); } }); + } else { + frm.refresh(); } },