fix: address template with upper filter throws jinja error (#25756)

This commit is contained in:
Saqib 2021-05-19 16:38:53 +05:30 committed by GitHub
parent 90f7ec840c
commit 4bd641367b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{{ address_line1 }}<br>
{% if address_line2 %}{{ address_line2 }}<br>{% endif -%}
{{ city }}, {% if state %}{{ state }}{% endif -%}{% if pincode %} {{ pincode }}<br>{% endif -%}
{% if country != "United States" %}{{ country|upper }}{% endif -%}
{% if country != "United States" %}{{ country }}{% endif -%}