Bugzilla – Attachment 71525 Details for
Bug 18403
Hide patron information if not part of the logged in user library group
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18403: Fix error triggered by subgroups being added to group
Bug-18403-Fix-error-triggered-by-subgroups-being-a.patch (text/plain), 1.40 KB, created by
Jonathan Druart
on 2018-02-12 19:35:24 UTC
(
hide
)
Description:
Bug 18403: Fix error triggered by subgroups being added to group
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-12 19:35:24 UTC
Size:
1.40 KB
patch
obsolete
>From 5b3b382f5814c2d30234e80d00f238547871d3e5 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Fri, 9 Feb 2018 08:51:02 -0500 >Subject: [PATCH] Bug 18403: Fix error triggered by subgroups being added to > group > >With one root group and two child groups and it works fine. >But if I create any groups under *those* groups, not only does it not work, >I get the following error: >Template process failed: undef error - SQL::Abstract::puke(): [SQL::Abstract::__ANON__] >Fatal: SQL::Abstract before v1.75 used to generate incorrect SQL when the -IN operator was >given an undef-containing list: !!!AUDIT YOUR CODE AND DATA!!! (the >upcoming Data::Query-based version of SQL::Abstract will >emit the logically correct SQL instead of raising this >exception) at /home/vagrant/kohaclone/Koha/Objects.pm line 269 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Patron.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 0d7cca43c2..b5506e4dab 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -791,7 +791,9 @@ sub libraries_where_can_see_patrons { > } > } > >- return sort(uniq(@restricted_branchcodes)); >+ @restricted_branchcodes = grep { defined $_ } @restricted_branchcodes; >+ @restricted_branchcodes = uniq(@restricted_branchcodes); >+ return sort (@restricted_branchcodes); > } > > sub can { >-- >2.11.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 18403
:
62010
|
62011
|
62012
|
62013
|
62014
|
62015
|
62016
|
62017
|
62018
|
62019
|
62020
|
62021
|
62022
|
62023
|
62024
|
62025
|
62026
|
62027
|
62028
|
62029
|
62030
|
62031
|
62032
|
62033
|
62302
|
62303
|
62830
|
62831
|
62832
|
62833
|
62834
|
62835
|
62836
|
62837
|
62838
|
62839
|
62840
|
62841
|
62842
|
62843
|
62844
|
62845
|
62846
|
62847
|
62848
|
62849
|
62850
|
62851
|
62852
|
62853
|
62854
|
62855
|
71392
|
71394
|
71500
|
71501
|
71502
|
71503
|
71504
|
71505
|
71506
|
71507
|
71508
|
71509
|
71510
|
71511
|
71512
|
71513
|
71514
|
71515
|
71516
|
71517
|
71518
|
71519
|
71520
|
71521
|
71522
|
71523
|
71524
| 71525 |
71526
|
71527
|
71528
|
71529
|
71530
|
71767