From 97173028931e4ecb769774bbad8f5491332c4f13 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 15 Apr 2019 16:24:56 +0530 Subject: [PATCH] fix: Invert check for print_format_type If print_format_type is not set, it does not show up. --- frappe/public/js/frappe/model/meta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/model/meta.js b/frappe/public/js/frappe/model/meta.js index 2d351137ef..e24c829dc5 100644 --- a/frappe/public/js/frappe/model/meta.js +++ b/frappe/public/js/frappe/model/meta.js @@ -199,7 +199,7 @@ $.extend(frappe.meta, { var print_formats = frappe.get_list("Print Format", {doc_type: doctype}) .sort(function(a, b) { return (a > b) ? 1 : -1; }); $.each(print_formats, function(i, d) { - if(!in_list(print_format_list, d.name) && in_list(['Server', 'Client'], d.print_format_type)) + if(!in_list(print_format_list, d.name) && d.print_format_type !== 'Js') print_format_list.push(d.name); });