Bug 33801

Summary: Holds API doesn't follow holds policies like the staff/OPAC UIs
Product: Koha Reporter: David Cook <dcook>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P5 - low CC: arthur.suzuki, blawlor, jonathan.druart, tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32702
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description David Cook 2023-05-23 06:56:53 UTC
The Holds API let you place multiple holds against the same item, while the OPAC and Staff Interface will prevent you from placing a hold on the same item for the same patron twice.
Comment 1 Tomás Cohen Arazi (tcohen) 2025-05-13 12:51:30 UTC
Does this still apply? Look:

https://git.koha-community.org/Koha-community/Koha/src/commit/efc39ed8ef583258a8cf8ea7f6da142995d0bc4b/Koha/REST/V1/Holds.pm#L91

Rules can only be overridden if the syspref is enabled, and the API is sent the `x-koha-override` header with the right value.
Comment 2 Arthur Suzuki 2025-05-14 07:40:16 UTC
Hi Thomas,
I think David is speaking about something else,
Some of the controls are wrongly implemented into the pl files instead of centralized in C4/Reserves.pm.
This creates inconsistencies in how the controls are done depending of how a reservation is made, from the interface or ILS-DI or API.
If I understand David right, I think this ticket is a duplicate of this omnibus bug : 30845.
Best,
Arthur

*** This bug has been marked as a duplicate of bug 30845 ***