Bug 34608: Deal with null values

default values for sort1 and sort2 is NULL

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-08-28 14:40:43 +02:00 committed by Katrin Fischer
parent 1dc88130d1
commit caa40bf425
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -656,6 +656,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);
}
@ -667,6 +668,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);
}