[Koha-bugs] [Bug 24464] Add K::A::Basket->creator

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 20 20:03:25 CET 2020


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

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 97632
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97632&action=edit
Bug 24464: Add K::A::Basket->creator

This patch adds a ->creator method to Koha::Acquisition::Basket to
retrieve the related Koha::Patron object.

Note: this should be re-done once 22658 is pushed, but at the time
being, there's not patch submitted, and it is not a trivial task because
of the column type missmatch. That said, the implementation of ->creator
in this class is simple enough to just rewrite it once 22658 is
submitted, and the tests will reflect the expected/unchanged behavior.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Acquisition/Basket.t
=> SUCCESS: Tests pass!
3. Sign off :-D

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


More information about the Koha-bugs mailing list