]> git.koha-community.org Git - koha.git/commit
Bug 24459: Make ->to_api pass $params through
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Jan 2020 12:48:03 +0000 (09:48 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 23 Jan 2020 09:07:16 +0000 (09:07 +0000)
commit1e52cb442b57248b837a73a5e2d7a59fb10ee42e
tree1e7cf4b741c64fdbc70146a51dc6c97754366df1
parente003a3c16495c8f488a2970b57e00e1070f64e7d
Bug 24459: Make ->to_api pass $params through

This patch makes the to_api method in Koha::Acquisition::Inovice and
Koha::Patron pass the passed parameters to the base class to_api method.
This is required for things like embedding related objects.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron.t \
           t/db_dependent/Koha/Acquisition/Invoice.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Invoice.pm
Koha/Patron.pm