Bugzilla – Attachment 49893 Details for
Bug 15832
Pending reserves: duplicates branches in datatable filter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15832: Remove empty string from the filters
Bug-15832-Remove-empty-string-from-the-filters.patch (text/plain), 1.27 KB, created by
Jonathan Druart
on 2016-04-05 06:41:42 UTC
(
hide
)
Description:
Bug 15832: Remove empty string from the filters
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-05 06:41:42 UTC
Size:
1.27 KB
patch
obsolete
>From e18822cdfcad7018356fc9a867c9011a5a2848fb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 5 Apr 2016 07:40:21 +0100 >Subject: [PATCH] Bug 15832: Remove empty string from the filters > >On each cell, the split will generate a new empty entry. >This patch removes that entry. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index 46f3088..a71b582 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -29,8 +29,7 @@ $(document).ready(function() { > var split_array = cD[j].split(/<br>/gi); > for ( k=0 ; k<split_array.length ; k++ ){ > var str = $.trim(split_array[k].replace(/[\n\r]/g, '')); >- var check_array = $.inArray(str, new_array); >- if (check_array == -1) { >+ if ($.inArray(str, new_array) == -1 && str.length > 0 ) { > new_array.push(str); > } > } >-- >2.7.0
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 15832
:
48141
|
48497
|
48694
|
49682
|
49870
|
49892
| 49893