fix: Consider "Small Text" and "Long Text" as text_field in print macro (#9308)
This commit is contained in:
parent
76eba344fa
commit
fa1af204b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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/") -%}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue