From a69c997a81d567ec87c0b43b736c8d3c13299fbc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 30 Oct 2023 16:44:41 +0100 Subject: [PATCH] Bug 33568: Do not display 'null' when no barcode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Laurence Rault Signed-off-by: Emily Lamancusa Signed-off-by: Tomás Cohen Arazi --- .../includes/html_helpers/tables/items/catalogue_detail.inc | 5 ++++- 1 file changed, 4 insertions(+), 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 4cf95839357..8ee98b918b4 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 @@ -589,7 +589,10 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return '%s'.format(row.biblio_id, row.item_id, row.external_id); + if ( row.external_id != null ) { + return '%s'.format(row.biblio_id, row.item_id, row.external_id); + } + return ''; } }, { -- 2.34.1