Przeglądaj źródła

fix: remove unnecessary type-casting

version-14
Sagar Vora 4 lat temu
rodzic
commit
3def386b05
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/templates/print_formats/standard_macros.html

+ 1
- 1
frappe/templates/print_formats/standard_macros.html Wyświetl plik

@@ -169,7 +169,7 @@ data-fieldname="{{ df.fieldname }}" data-fieldtype="{{ df.fieldtype }}"
{%- if df.print_width.endswith("%") -%}
{{ df.print_width }}
{%- else -%}
{{ (df.print_width|str).replace("px", "") }}px
{{ df.print_width.replace("px", "") }}px
{%- endif -%}
{%- elif df.fieldtype in ("Int", "Check", "Float", "Currency") -%}{{ 80 }}px
{%- else -%}{{ 150 }}px{% endif -%}


Ładowanie…
Anuluj
Zapisz