From 712a481c6dc59453f1bd75ee8920a74302590751 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=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Laurence Rault Signed-off-by: Emily Lamancusa Signed-off-by: Tomás Cohen Arazi Signed-off-by: Katrin Fischer --- .../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 4cf9583935..8ee98b918b 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.39.5