fix(Item Template): Fallback description string

Fixes #18572
This commit is contained in:
Faris Ansari 2019-08-07 17:21:22 +05:30
parent 9335cdd536
commit 2260838933

View File

@ -9,9 +9,9 @@
</p>
<!-- description -->
<div itemprop="description">
{% if frappe.utils.strip_html(doc.web_long_description) %}
{% if frappe.utils.strip_html(doc.web_long_description or '') %}
{{ doc.web_long_description | safe }}
{% elif frappe.utils.strip_html(doc.description) %}
{% elif frappe.utils.strip_html(doc.description or '') %}
{{ doc.description | safe }}
{% else %}
{{ _("No description given") }}