Bläddra i källkod

fix: convert string check to tuple check

breaks as `'in <string>' requires string as left operand` when
df.fieldtype is None

(cherry picked from commit c00d9f5267)
version-14
Faris Ansari 2 år sedan
committed by Mergify
förälder
incheckning
8be9e1b180
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      frappe/templates/print_formats/standard_macros.html

+ 1
- 1
frappe/templates/print_formats/standard_macros.html Visa fil

@@ -181,7 +181,7 @@ data-fieldname="{{ df.fieldname }}" data-fieldtype="{{ df.fieldtype }}"
{% if no_of_cols >= 3 %}{{ "" }}
{%- elif df.align -%}{{ "text-" + df.align }}
{%- elif df.fieldtype in ("Int", "Float", "Currency", "Percent") -%}{{ "text-right" }}
{%- elif df.fieldtype in ("Check") -%}{{ "text-center" }}
{%- elif df.fieldtype in ("Check",) -%}{{ "text-center" }}
{%- else -%}{{ "" }}
{%- endif -%}
{% endmacro %}


Laddar…
Avbryt
Spara