mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
perf: don't cleanup plaintext fallback
This commit is contained in:
@@ -226,7 +226,10 @@ class Item(Document):
|
|||||||
|
|
||||||
def validate_description(self):
|
def validate_description(self):
|
||||||
"""Clean HTML description if set"""
|
"""Clean HTML description if set"""
|
||||||
if cint(frappe.db.get_single_value("Stock Settings", "clean_description_html")):
|
if (
|
||||||
|
cint(frappe.db.get_single_value("Stock Settings", "clean_description_html"))
|
||||||
|
and self.description != self.item_name # perf: Avoid cleaning up a fallback
|
||||||
|
):
|
||||||
self.description = clean_html(self.description)
|
self.description = clean_html(self.description)
|
||||||
|
|
||||||
def validate_customer_provided_part(self):
|
def validate_customer_provided_part(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user