[Koha-bugs] [Bug 21909] Koha::Account::outstanding_* methods should preserve call context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 26 18:51:07 CET 2018


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

--- Comment #13 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 83512
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83512&action=edit
Bug 21909: Make Koha::Account::outstanding_* preserve context

This patch modifies the methods so they preserve the caller's context
(list and scalar).

To test:
- Apply the first patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> FAIL: outstanding_credits and outstanding_debits tests fail
- Apply this patch
- Run:
 k$ prove t/db_dependent/Koha/Account.t
=> SUCCESS: We are so happy now :-D
- Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list