Koha-clms/Koha/Account
Martin Renvoize d4dc15ee36 Bug 25508: Only return renewal outcomes to the controller
There are a few cases where the `renew_item` method in
Koha::Account::Line will return `undef`. For these cases, we should not
pass the error up the chain to the controllers as it leads to malformed
error messages in the UI.

Test plan
1 - Make sure FinesMode is on, RenewAccruingItemWhenPaid is off
2 - Checkout an item to a patron and make it overdue (can backdate the
    checkout)
3 - Make sure the itemtype has fines that will be charged
4 - Charge the fines:
    Set finesMode = production
    perl misc/cronjobs/fines.pl -v
5 - Check the fine appears on the patrons account
6 - Pay off the fine
7 - Receive alert after payment that reads: "The fines on
    the following items were paid off, renewal results are
    displayed below:
        No title ( ): Not renewed - Unknown error"
8 - Apply the patch
9 - Repeat steps 1 through 6 and note that you no longer trigger the
    error message.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-16 12:01:49 +02:00
..
CreditType.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
CreditTypes.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
DebitType.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
DebitTypes.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Line.pm Bug 25508: Only return renewal outcomes to the controller 2021-04-16 12:01:49 +02:00
Lines.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Offset.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Offsets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00