Merge pull request #18631 from netchampfaris/fix-item-template-description

fix(Item Template): Fallback description string
This commit is contained in:
Deepesh Garg 2019-08-11 11:20:46 +05:30 committed by GitHub
commit 8f706399a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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