Koha-clms/circ
Kevin Carnes ea4600476e
Bug 21941: Fix GROUP BY in circ/reserveratios.pl
When using strict_sql_modes, the Hold ratios page causes an Incorrect
GROUP BY error and returns an Error 500.

This patch removes uncessary columns from the database query and adds
the biblio columns to the GROUP BY statement, so they can be selected.
Since it's already grouped by biblionumber, it should not cause any
additional rows to be created.

Test plan:
1. Make sure that strict_sql_modes is enabled in the koha-conf.xml
   file.
2. Place at least one hold on a book.
3. Go to Circulation and select Hold ratios.
4. Observe that you get an Error 500.
5. Apply patch.
6. Repeat step 3.
7. Observe that you can view the page.
8. If the table is empty, change the ratio to 1.
9. Sign off.

Sponsored-by: Lund University Library
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-04-09 08:27:25 -06:00
..
add_message.pl Bug 39781: Allow limiting of custom message notices by library 2026-03-24 15:38:08 +01:00
article-request-slip.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
article-requests.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
bookcount.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
branchoverdues.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
branchtransfers.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
checkout-notes.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
circulation-home.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
circulation.pl Bug 23415: Notify patron fines when renewing 2026-03-22 23:03:05 +01:00
curbside_pickups.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
del_message.pl Bug 41904: "Use of uninitialized value..." warning in del_message.pl 2026-03-05 08:33:55 -07:00
hold-transfer-slip.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
on-site_checkouts.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
overdue.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
pendingbookings.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
pendingreserves.pl Bug 40529: Behavior change: Main patch 2025-11-03 14:13:22 -07:00
renew.pl Bug 23415: Add debt override support to circulation checkout page 2026-03-22 23:27:26 +01:00
request-article.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
reserveratios.pl Bug 21941: Fix GROUP BY in circ/reserveratios.pl 2026-04-09 08:27:25 -06:00
returns.pl Bug 28530: (QA follow-up) Remove unused LibraryFloatLimitTransferRequest message handling 2026-02-10 10:51:40 -07:00
set-library.pl Bug 41229: Fix desk and register session persistence on library change 2025-12-01 08:34:05 -07:00
transfer-slip.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
transfers_to_send.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
transferstoreceive.pl Bug 41206: Add collection code to transfers to receive 2026-02-06 15:17:10 -07:00
view_holdsqueue.pl Bug 40335: Fix mistake in template params 2025-10-14 14:51:57 -06:00
waitingreserves.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00