From 226083893392546b2cb4133cdce078fe62077817 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 7 Aug 2019 17:21:22 +0530 Subject: [PATCH] fix(Item Template): Fallback description string Fixes #18572 --- erpnext/templates/generators/item/item_details.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/generators/item/item_details.html b/erpnext/templates/generators/item/item_details.html index 8e560333ae..4cbecb0215 100644 --- a/erpnext/templates/generators/item/item_details.html +++ b/erpnext/templates/generators/item/item_details.html @@ -9,9 +9,9 @@

-{% 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") }}