]> git.koha-community.org Git - koha.git/commit
Bug 26915: Fix FinePaymentAutoPopup behaviour
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 08:04:19 +0000 (09:04 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 16 Nov 2020 21:45:51 +0000 (21:45 +0000)
commitaeef2fadc39ce019e4f665621d282b088f9a2704
treec5e34e47a227d1254c1ef3d9753d36f0489c3d5b
parent87cbd07be836291f860ecbd5cea5538863317164
Bug 26915: Fix FinePaymentAutoPopup behaviour

The behaviour of the syspref FinePaymentAutoPopup is broken, the popup
explodes with
    Can't call method "unblessed" on an undefined value at /home/vagrant/kohaclone/members/printfeercpt.pl line 64

It has been broken by
  commit a2449a81be55aa5b3710ca2c6df7884513f89540
  Bug 23051: (follow-up) Add renewal feedback and move code to subroutines and test
which modified the return value of Koha::Account->pay (from $payment_id
to a hashref)

Test plan:
- To test activate FinePaymentAutoPopup
- Create a manual fee
- Write it off using the write off button on the account line (not below table)
=> Without the patch you get the error
=> With the patch applied the popup is correctly displayed

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 42c0475a948577442e44b11dbb12b45b25171418)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
members/pay.pl