Bugzilla – Attachment 170812 Details for
Bug 34608
Add sort1 and sort2 to patron search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34608: Deal with null values
Bug-34608-Deal-with-null-values.patch (text/plain), 1.66 KB, created by
Jonathan Druart
on 2024-08-28 12:41:51 UTC
(
hide
)
Description:
Bug 34608: Deal with null values
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-08-28 12:41:51 UTC
Size:
1.66 KB
patch
obsolete
>From cfa1d16e28ae153ec1a8c7452cc78accddb8b2d6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34608
:
154729
|
155343
|
158194
|
159544
|
159545
|
159561
|
162592
|
162593
|
165260
|
165360
|
165375
|
167789
|
170624
|
170625
|
170626
|
170809
|
170810
|
170811
|
170812
|
170936
|
170937