Merge pull request #7282 from netchampfaris/print-format-not-shown
fix: Invert check for print_format_type
This commit is contained in:
commit
4fbd498f89
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue