Bugzilla – Attachment 102459 Details for
Bug 24964
Do not filter patrons AFTER they have been fetched from the DB (when searching with permissions)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24964: [19.11.x] Prevent random failures sorting by borrowernumber
Bug-24964-1911x-Prevent-random-failures-sorting-by.patch (text/plain), 1.17 KB, created by
Jonathan Druart
on 2020-04-06 14:56:13 UTC
(
hide
)
Description:
Bug 24964: [19.11.x] Prevent random failures sorting by borrowernumber
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-06 14:56:13 UTC
Size:
1.17 KB
patch
obsolete
>From 4a855398c265fe60e67d0a0d9c736b152c5c1a7b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 25 Mar 2020 13:50:45 +0100 >Subject: [PATCH] Bug 24964: [19.11.x] Prevent random failures sorting by > borrowernumber > >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Utils/Datatables_Members.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Utils/Datatables_Members.t b/t/db_dependent/Utils/Datatables_Members.t >index 7f1363946f..8b0f8ce091 100644 >--- a/t/db_dependent/Utils/Datatables_Members.t >+++ b/t/db_dependent/Utils/Datatables_Members.t >@@ -507,7 +507,7 @@ subtest 'Search with permissions' => sub { > is( $search_results->{iTotalDisplayRecords}, > 3, "We find 3 patrons with suggestions_manage permission" ); > is_deeply( >- [ map { $_->{borrowernumber} } @{ $search_results->{patrons} } ], >+ [ sort map { $_->{borrowernumber} } @{ $search_results->{patrons} } ], > [ > $superlibrarian->borrowernumber, > $librarian_with_full_permission->borrowernumber, >-- >2.20.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 24964
:
101668
|
101669
|
101686
|
101702
|
101813
|
101814
|
101815
|
101820
|
101821
|
101822
|
101823
|
102434
|
102435
|
102457
|
102458
| 102459 |
102460
|
102461