fix: Consider "Small Text" and "Long Text" as text_field in print macro (#9308)

This commit is contained in:
Suraj Shetty 2020-01-20 12:26:53 +05:30 committed by sahil28297
parent 76eba344fa
commit fa1af204b0

View file

@ -3,7 +3,7 @@
{{ render_table(df, doc) }}
{%- elif df.fieldtype=="HTML" and df.options -%}
<div>{{ frappe.render_template(df.options, {"doc": doc}) or "" }}</div>
{%- 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/") -%}