[Koha-bugs] [Bug 31328] Make Koha::Item->get_transfer* use Koha::Item::Transfers->filter_by_current

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 9 13:43:00 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31328

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 138899
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138899&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list