Bugzilla – Attachment 48497 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 - Fix items split-up in pendingreserves.tt
Bug-15832---Fix-items-split-up-in-pendingreservest.patch (text/plain), 1.49 KB, created by
Alex Arnaud
on 2016-03-01 11:31:21 UTC
(
hide
)
Description:
Bug 15832 - Fix items split-up in pendingreserves.tt
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2016-03-01 11:31:21 UTC
Size:
1.49 KB
patch
obsolete
>From b5df6cec84b6180d0ba4b20b6b62dd76b08575e6 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 16 Feb 2016 16:33:17 +0100 >Subject: [PATCH] Bug 15832 - Fix items split-up in pendingreserves.tt > >Test plna: > >- Go to circ/pendingreserves.pl (Ensure that there are biblios with many >items on different branches), >-check the libraries filter at the bottom of datatable. There should be >duplicates. >- Apply this patch and return to circ/pendingreserves.pl, >- libraries filter should not contain duplicate. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 5 +++-- > 1 file changed, 3 insertions(+), 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 919f0c3..da6c41b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -28,9 +28,10 @@ $(document).ready(function() { > for ( j=0 ; j<cD.length ; j++ ) { > var split_array = cD[j].split(/<br>/gi); > for ( k=0 ; k<split_array.length ; k++ ){ >- var check_array = $.inArray(split_array[k], new_array); >+ var str = $.trim(split_array[k].replace(/[\n\r]/g, '')); >+ var check_array = $.inArray(str, new_array); > if (check_array == -1) { >- new_array.push(split_array[k]); >+ 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