From c00d9f52672ca391db3baa2f368bb8e339976513 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 7 Oct 2022 15:31:55 +0530 Subject: [PATCH] fix: convert string check to tuple check breaks as `'in ' requires string as left operand` when df.fieldtype is None --- 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 a4129501b0..5dcbaff7c5 100644 --- a/frappe/templates/print_formats/standard_macros.html +++ b/frappe/templates/print_formats/standard_macros.html @@ -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 %}