From fa1af204b0cef124b633f86f810b09e4d112780f Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Mon, 20 Jan 2020 12:26:53 +0530 Subject: [PATCH] fix: Consider "Small Text" and "Long Text" as text_field in print macro (#9308) --- frappe/templates/print_formats/standard_macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/templates/print_formats/standard_macros.html b/frappe/templates/print_formats/standard_macros.html index 8f2fd82f24..45228587f8 100644 --- a/frappe/templates/print_formats/standard_macros.html +++ b/frappe/templates/print_formats/standard_macros.html @@ -3,7 +3,7 @@ {{ render_table(df, doc) }} {%- elif df.fieldtype=="HTML" and df.options -%}
{{ frappe.render_template(df.options, {"doc": doc}) or "" }}
- {%- elif df.fieldtype in ("Text", "Text Editor", "Code") -%} + {%- elif df.fieldtype in ("Text", "Text Editor", "Code", "Small Text", "Long Text") -%} {{ render_text_field(df, doc) }} {%- elif df.fieldtype in ("Image", "Attach Image", "Attach") and (guess_mimetype(doc[df.fieldname])[0] or "").startswith("image/") -%}