From cfa1d16e28ae153ec1a8c7452cc78accddb8b2d6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Aug 2024 14:40:43 +0200 Subject: [PATCH] Bug 34608: Deal with null values default values for sort1 and sort2 is NULL Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index d0d32c761c0..05cf4901657 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -656,6 +656,7 @@ "searchable": true, "orderable": true, "render": function( data, type, row, meta ) { + if (data === null) return ''; let bsort2 = av_bsort2_map[data.toString()]; return escape_str(bsort2 ? bsort2.lib : data); } @@ -667,6 +668,7 @@ "searchable": true, "orderable": true, "render": function( data, type, row, meta ) { + if (data === null) return ''; let bsort1 = av_bsort1_map[data.toString()]; return escape_str(bsort1 ? bsort1.lib : data); } -- 2.34.1