Bug 32116

Summary: "Patrons with the most checkouts" report (bor_issues_top.pl) broken with SQL strict mode enabled
Product: Koha Reporter: David Nind <david>
Component: ReportsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P1 - high    
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 17258    

Description David Nind 2022-11-07 02:09:40 UTC
This report (Reports > Top lists > Patrons with the most checkouts) does not work when the database is in strict mode.

Error trace:

CGI::Compile::ROOT::kohadevbox_koha_reports_bor_issues_top_2epl::calculate(): DBI Exception: DBD::mysql::st execute failed: 'koha_kohadev.borrowers.surname' isn't in GROUP BY at /kohadevbox/koha/reports/bor_issues_top.pl line 58 at /usr/share/perl5/DBIx/Class/Exception.pm line 77
....