Koha-clms/C4/Utils/DataTables
Nick Clemens 1eb9e0393b Bug 29134: (follow-up) Specify which borrowernumber
When performing a search that includes permissions we need to specify we are comparing
the borrowers tabnle borrowernumber

To test:
1 - Browse to Admin->Funds
2 - Edit a fund
3 - Click '+ Add users'
4 - Attempt a search, no results
5 - Check plack-error.log
    C4::Utils::DataTables::Members::search(): DBI Exception: DBD::mysql::st execute failed: Column 'borrowernumber' in IN/ALL/ANY subquery is ambiguous at /kohadevbox/koha/svc/members/search line 80
6 - Apply patch
7 - Repeat 1-3
8 - search for 'a'
9 - Result!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 591ffce832)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-10-26 23:37:23 +02:00
..
ColumnsSettings.pm Bug 17189: Replace occurrences of 'use Koha::Cache' 2016-09-08 10:24:47 +00:00
Members.pm Bug 29134: (follow-up) Specify which borrowernumber 2021-10-26 23:37:23 +02:00
VirtualShelves.pm Bug 20144: [sql_modes] Fix GROUP BY clause in Virtualshelves search (DT) 2018-02-13 13:59:01 -03:00