Ver a proveniência

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 há 2 anos
committed by Mergify
ascendente
cometimento
8be9e1b180
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      frappe/templates/print_formats/standard_macros.html

+ 1
- 1
frappe/templates/print_formats/standard_macros.html Ver ficheiro

@@ -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 %}


Carregando…
Cancelar
Guardar