From 9e2173e4c2ad44913a49e26b0928a9fae2deeefc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 19 Aug 2026 00:17:17 +0530 Subject: [PATCH] fix: escape on status image for workstations in production status (backport #58279) (#58281) Co-authored-by: Diptanil Saha --- erpnext/manufacturing/doctype/workstation/workstation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/workstation/workstation.py b/erpnext/manufacturing/doctype/workstation/workstation.py index 1dceddad256..afc18e12d13 100644 --- a/erpnext/manufacturing/doctype/workstation/workstation.py +++ b/erpnext/manufacturing/doctype/workstation/workstation.py @@ -507,7 +507,7 @@ def get_workstations(**kwargs): for d in data: d.workstation_name = get_link_to_form("Workstation", d.name) - d.status_image = d.on_status_image + d.status_image = frappe.utils.escape_html(d.on_status_image) d.workstation_off = "" d.color = color_map.get(d.status, "red") d.workstation_link = get_url_to_form("Workstation", d.name)