Created attachment 138899 [details] [review] Bug 31328: Make Koha::Item->get_transfer* use Koha::Item::Transfers->filter_by_current This patch makes the get_transfer and get_transfers methods internally use the new ->filter_by_current method. To test: 1. Run: $ kshell k$ prove t/db_dependent/Koha/Item.t => SUCCESS: Tests pass! 2. Apply this rewriting patch 3. Repeat 1 => SUCCESS: Tests still pass! 4. Sign off :-D
Created attachment 138983 [details] [review] Bug 31328: Make Koha::Item->get_transfer* use Koha::Item::Transfers->filter_by_current This patch makes the get_transfer and get_transfers methods internally use the new ->filter_by_current method. To test: 1. Run: $ kshell k$ prove t/db_dependent/Koha/Item.t => SUCCESS: Tests pass! 2. Apply this rewriting patch 3. Repeat 1 => SUCCESS: Tests still pass! 4. Sign off :-D Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 138984 [details] [review] Bug 31328: Call get_transfers from get_transfer Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 138990 [details] [review] Bug 31328: Make Koha::Item->get_transfer* use Koha::Item::Transfers->filter_by_current This patch makes the get_transfer and get_transfers methods internally use the new ->filter_by_current method. To test: 1. Run: $ kshell k$ prove t/db_dependent/Koha/Item.t => SUCCESS: Tests pass! 2. Apply this rewriting patch 3. Repeat 1 => SUCCESS: Tests still pass! 4. Sign off :-D Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 138991 [details] [review] Bug 31328: Call get_transfers from get_transfer Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Pushed to master for 22.11. Nice work everyone, thanks!
Enhancement will not be backported to 22.05.x series