From 8bd2de1deba640aedb374d4b17833ce5fd71744d Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 28 Apr 2015 17:23:54 +0530 Subject: [PATCH] [fix] print format --- .../print/page/print_format_builder/print_format_builder.js | 4 ++-- .../print_format_builder/print_format_builder_field.html | 2 ++ frappe/public/js/frappe/form/print.js | 2 +- frappe/translate.py | 5 ++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frappe/print/page/print_format_builder/print_format_builder.js b/frappe/print/page/print_format_builder/print_format_builder.js index aa4e8fa813..e20929171b 100644 --- a/frappe/print/page/print_format_builder/print_format_builder.js +++ b/frappe/print/page/print_format_builder/print_format_builder.js @@ -11,7 +11,7 @@ frappe.pages['print-format-builder'].on_page_show = function(wrapper) { frappe.route_options = null; frappe.print_format_builder.setup_new_print_format(doctype, name); } else { - frappe.print_format_builder.print_format = frappe.route_options.print_format.doc; + frappe.print_format_builder.print_format = frappe.route_options.doc; frappe.route_options = null; frappe.print_format_builder.refresh(); } @@ -241,7 +241,7 @@ frappe.PrintFormatBuilder = Class.extend({ set_column(); } else if(!in_list(["Section Break", "Column Break", "Fold"], f.fieldtype) - && !f.print_hide && f.label) { + && f.label) { if(!column) set_column(); if(f.fieldtype==="Table") { diff --git a/frappe/print/page/print_format_builder/print_format_builder_field.html b/frappe/print/page/print_format_builder/print_format_builder_field.html index f7cacd5976..299cfa2a39 100644 --- a/frappe/print/page/print_format_builder/print_format_builder_field.html +++ b/frappe/print/page/print_format_builder/print_format_builder_field.html @@ -1,4 +1,6 @@