From 0c4426534886797e36b5a0dae536194997d5e8f2 Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Mon, 19 May 2025 08:58:17 -0300
Subject: [PATCH] Bug 39932: Remove split in template

Signed-off-by: David Nind <david@davidnind.com>
---
 .../en/includes/html_helpers/tables/items/catalogue_detail.inc  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc
index ec3341b1ef..67440510e6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc
@@ -511,7 +511,7 @@
                     orderable: false,
                     render: function (data, type, row, meta) {
                         let nodes = "";
-                        row._status.split(",").forEach( status => {
+                        row._status.forEach( status => {
                             if ( status == 'checked_out' || status == 'local_use') {
                                 nodes += '<span>';
 
-- 
2.39.5