]> git.koha-community.org Git - koha.git/commit
Bug 22600: (QA follow-up) Raise an exception on missing interface param
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 Apr 2019 14:58:19 +0000 (11:58 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 10 Apr 2019 19:43:11 +0000 (19:43 +0000)
commita55e50cf62438ce356e8373ee1d03686d3f96e04
tree6e0c744fb904370d2f8c757dc240189f1ea722fa
parentb1171d9ef399d68e49044fbc2cb17efbeeaee093
Bug 22600: (QA follow-up) Raise an exception on missing interface param

This patch makes add_credit and add_debit raise a
Koha::Exceptions::MissingParameter exception if the 'interface'
parameter is ommited.

The database will fail to generate the line anyways in strict mode, and
we better handle it gracefuly.

Bonus: fixed the TODOs in the tests.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm
t/db_dependent/Koha/Account.t