[Koha-bugs] [Bug 24964] Do not filter patrons AFTER they have been fetched from the DB (when searching with permissions)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 25 13:02:16 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24964

Fridolin SOMERS <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fridolin.somers at biblibre.co
                   |                            |m
             Status|Needs Signoff               |Failed QA

--- Comment #4 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
In test :
+    is_deeply(
+        [ map { $_->{borrowernumber} } @{ $search_results->{patrons} } ],
+        [
+            $superlibrarian->borrowernumber,
+            $librarian_with_full_permission->borrowernumber,
+            $librarian_with_subpermission->borrowernumber
+        ],
+        'We got the 3 patrons we expected'
+    );

I get an error because $search_results->{patrons} may not be ordered like
expected array.
Test is OK when adding sort on both arrays.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list