Koha/reports
Fridolin Somers 8d2324e6de Bug 22082: ambiguous column in patron stats
In Reports > Patrons statistics, the combination of activity and extended attributes generates an invalid SQL query with error :
ERROR 1052 (23000): Column 'borrowernumber' in IN/ALL/ANY subquery is ambiguous

This is because FROM contains tables borrowers and borrower_attributes both containing borrowernumber column.

Test plan :
1) Be sure to have a patron extended attribute
2) Be sure you have some recent circulation activity
3) Go to Reports > Patrons statistics
4) Select 'active' in 'Patron activity' and 1 years of activity
5) Check 'Row' in 'Patron category'
6) Check 'Columns' in a extended attribute
7) Submit
8) Without patch you have no results, with patch you have exepected results

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-01-18 20:31:58 +00:00
..
acquisitions_stats.pl
bor_issues_top.pl Bug 17925: Disable debugging in reports/bor_issues_top.pl 2017-05-12 09:09:15 -04:00
borrowers_out.pl
borrowers_stats.pl Bug 22082: ambiguous column in patron stats 2019-01-18 20:31:58 +00:00
cash_register_stats.pl Bug 19551: Fix wrong order of operations in cash register report 2017-12-07 10:09:51 -03:00
cat_issues_top.pl
catalogue_out.pl
catalogue_stats.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
dictionary.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
guided_reports.pl Bug 21984: Pass param_name in pagination URL 2018-12-19 16:32:00 +00:00
issues_avg_stats.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
issues_stats.pl Bug 19671: Map itemtypes to hash for correct display in issues_stats.pl 2018-02-13 12:50:18 -03:00
itemslost.pl
itemtypes.plugin
manager.pl
orders_by_fund.pl Bug 18260: Koha::Biblio - Remove GetBiblio 2017-07-10 13:03:38 -03:00
reports-home.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00
reserves_stats.pl
serials_stats.pl Bug 20012: use Modern::Perl in Reports perl scripts 2018-02-05 09:46:44 -03:00