Bug 42075 - Transforming booking to checkout may fail with false clash detection and return 500 error
Summary: Transforming booking to checkout may fail with false clash detection and retu...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-12 14:34 UTC by Laura Escamilla
Modified: 2026-03-12 16:34 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laura Escamilla 2026-03-12 14:34:28 UTC
When attempting to check out an item associated with an active booking (either via normal checkout or using "Transform to checkout"), Koha may throw a Koha::Exceptions::Booking::Clash and return a 500 error even when the booking dates and item assignment are valid. This appears to occur during the booking store() logic where both item-level and biblio-level check_booking() validations are executed. In some cases the biblio-level booking check incorrectly reports no available bookable items even though the booked item itself is valid, causing checkout to fail. The expected behavior is that a booking transitioning to checkout should complete successfully without triggering a clash when the assigned item and booking dates are valid.