From b8f1fdc92e2ce81e6f4a466a963f1937e0b910b6 Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Fri, 12 May 2017 11:14:30 +0530 Subject: [PATCH] [minor] fixed the set_query for the doctype field in Custom Field (#3275) --- frappe/custom/doctype/custom_field/custom_field.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/custom/doctype/custom_field/custom_field.js b/frappe/custom/doctype/custom_field/custom_field.js index 3d3f03ef9c..30a5bcef5f 100644 --- a/frappe/custom/doctype/custom_field/custom_field.js +++ b/frappe/custom/doctype/custom_field/custom_field.js @@ -13,7 +13,9 @@ frappe.ui.form.on('Custom Field', { if(user!=="Administrator") { filters.push(['DocType', 'module', '!=', 'Core']) } - return filters + return { + "filters": filters + } }); }, refresh: function(frm) {