From e78accd7bbe113e90de134638c9f9ff30f8ae7eb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 27 Aug 2024 14:42:50 +0200 Subject: [PATCH] Bug 37544: Prevent the item table to crash if ccode is not linked with an av cat Same as the previous patch for collection_code (952$8) --- .../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 9af11948d81..787cd163c60 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 @@ -385,7 +385,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return escape_str(row._strings.collection_code.str); + return escape_str(row._strings.collection_code ? row._strings.collection_code.str : row.collection_code); } }, [% IF Koha.Preference('EnableItemGroups') %] -- 2.34.1