fix: escape on status image for workstations in production status (backport #58279) (#58280)

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2026-08-18 20:27:31 +00:00
committed by GitHub
parent 37f2770809
commit d047caf4aa

View File

@@ -413,7 +413,7 @@ def get_workstations(**kwargs):
for d in data: for d in data:
d.workstation_name = get_link_to_form("Workstation", d.name) 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.background_color = color_map.get(d.status, "var(--red-600)") d.background_color = color_map.get(d.status, "var(--red-600)")
d.workstation_link = get_url_to_form("Workstation", d.name) d.workstation_link = get_url_to_form("Workstation", d.name)
if d.status != "Production": if d.status != "Production":