Bugzilla – Attachment 48141 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.19 KB, created by
Alex Arnaud
on 2016-02-16 15:34:44 UTC
(
hide
)
Description:
Bug 15832 - Fix items split-up in pendingreserves.tt
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2016-02-16 15:34:44 UTC
Size:
1.19 KB
patch
obsolete
>From 45e3ff4833ea90e707bbca34c5d1bc79e8e13c52 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 > >--- > 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