]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Jan 2019 15:01:03 +0000 (15:01 +0000)
commit52c696006cc40ab6e38734f7cf255e614f8c92ce
tree22ef6a91bdd8857392be682575e4649dbb745e72
parent5cc46f9b9cb196c0d242c8c5a08cb88da7c5bd95
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>
(cherry picked from commit d3ff671f215398ad51a6ce550c33c0c6ca3aa30a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account.pm