Bug 41960 - Add option to block placing hold when patron has overdues
Summary: Add option to block placing hold when patron has overdues
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Janusz Kaczmarek
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-01 19:56 UTC by Janusz Kaczmarek
Modified: 2026-03-01 22:35 UTC (History)
4 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41960: Add new systempreference 'OverduesBlockHolds' (3.49 KB, patch)
2026-03-01 22:33 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 41960: Add option to block placing hold when patron has overdues (3.46 KB, patch)
2026-03-01 22:33 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 41960: Unit tests (2.05 KB, patch)
2026-03-01 22:33 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Janusz Kaczmarek 2026-03-01 19:56:38 UTC
Some libraries may want to block the possibility of placing hold when a patron has overdues. Currently, a patron is blocked when they has mode than maxoutstanding fines or when the account has been debarred (e.g. as a result of having overdues). But there is no possibility to directly block reserves in case of an overdue.
Comment 1 Janusz Kaczmarek 2026-03-01 22:33:32 UTC
Created attachment 194251 [details] [review]
Bug 41960: Add new systempreference 'OverduesBlockHolds'
Comment 2 Janusz Kaczmarek 2026-03-01 22:33:34 UTC
Created attachment 194252 [details] [review]
Bug 41960: Add option to block placing hold when patron has overdues

Some libraries may want to block the possibility of placing hold when
a patron has overdues. Currently, a patron is blocked when they has
mode than maxoutstanding fines or when the account has been debarred
(e.g. as a result of having overdues). But there is no possibility to
directly block reserves in case of an overdue.

Test plan:
==========
1. Check out any book to any user.
2. In ktd --dbshell, change date_due to an earlier date.
3. In a private window, log in as that user (change their password
   first) and place an order for another book. You will be able to do
   this despite the overdue items.
4. Apply the patch, updatedatabase, restart_all.
5. Set OverduesBlockHolds to 'Block'.
6. Repeat step 3. You should get the message "Sorry, you cannot place
   holds. You are not permitted to place holds while you have overdue
   items on your account."
7. Change OverduesBlockHolds to 'Don't block'.
8. Repeat step 3. You should be able to place an order.
Comment 3 Janusz Kaczmarek 2026-03-01 22:33:36 UTC
Created attachment 194253 [details] [review]
Bug 41960: Unit tests