]> git.koha-community.org Git - koha.git/commit
Bug 31328: Make Koha::Item->get_transfer* use Koha::Item::Transfers->filter_by_current
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 Aug 2022 11:40:45 +0000 (08:40 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 16 Aug 2022 12:19:06 +0000 (09:19 -0300)
commite58bb3d605736049ed289bf77fffb003fa8d3d51
tree8942b6a3125d520f80ae4cfe25e1f01544858833
parentb3d8941c34887b34c69edac8f33b7de179d96267
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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Item.pm