mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 21:52:21 +01:00
refactor: fix logical bug and make stock settings test deterministic
This commit is contained in:
@@ -353,8 +353,8 @@ def clean_all_descriptions():
|
||||
for item in frappe.get_all("Item", ["name", "description"]):
|
||||
if item.description:
|
||||
clean_description = clean_html(item.description)
|
||||
if item.description != clean_description:
|
||||
frappe.db.set_value("Item", item.name, "description", clean_description)
|
||||
if item.description != clean_description:
|
||||
frappe.db.set_value("Item", item.name, "description", clean_description)
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
|
||||
Reference in New Issue
Block a user