]> git.koha-community.org Git - koha.git/commit
Bug 21909: Make Koha::Account::outstanding_* preserve context
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 29 Nov 2018 15:10:21 +0000 (12:10 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 2 Jan 2019 20:20:30 +0000 (20:20 +0000)
commitd3ff671f215398ad51a6ce550c33c0c6ca3aa30a
tree483f755f03241d3cf184a3755331c1a3d0897132
parent85c474e59761e2bb27d9921180752249b5edca9e
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@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm