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) {