]> git.koha-community.org Git - koha.git/commit
Bug 33493: Add a filter relationship for branchtransfers
authorNick Clemens <nick@bywatersolutions.com>
Fri, 10 Mar 2023 16:14:50 +0000 (16:14 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 5 Jun 2023 18:36:08 +0000 (15:36 -0300)
commit6c2e092d5b120d251e161ab914ce342fddd35a5a
treea053b458c9464fdd8debc755f8df17ada7e4a81c
parent94ed265e6a6cc66493ab1799828a5332d148cf3a
Bug 33493: Add a filter relationship for branchtransfers

Prefetching is useful, but we don't want to fetch all the inactive
transfers for an item. This patch adds a filtered relationship and
updates get_transfer(s) to use this

To test:
prove -v t/db_dependent/Koha/Item.t

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Item.pm
Koha/Schema/Result/Item.pm