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:
parent
1dc88130d1
commit
caa40bf425
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue