https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43108 --- Comment #10 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 202383 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202383&action=edit Bug 43108: (QA follow-up) Use Koha::Result::Availability for per-cell results Build each per-(date, item) cell as a Koha::Result::Availability object (add_blocker/add_warning) instead of a hand-rolled hashref, converting to the wire shape via ->to_hashref only at the end of check(). This aligns booking availability with the result-object pattern introduced by bug 41728 and used by bug 42386's checkout/hold availability, instead of merely mimicking its hashref shape. Depends on Bug 41728 (Koha::Result::Availability), brought onto this branch in the preceding commit. No change to the returned JSON/hashref shape or to any public API. Test plan: prove t/Koha/Result/Availability.t \ t/db_dependent/Koha/Biblio/Availability/Booking.t \ t/db_dependent/Koha/Biblio.t \ t/db_dependent/api/v1/biblios.t Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.