Bug 16054: Fix variable scope error in paycollect.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 11 Mar 2016 12:47:26 +0000 (12:47 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 15 Mar 2016 07:12:12 +0000 (07:12 +0000)
commitda21ad065939d0789bb90d8fd6d088b781688aa3
tree33a33fb3528a4031a9266affedd8650369b50e48
parent55b78f1a5dbbff5a790971e2f5a99ebdd6a3f18a
Bug 16054: Fix variable scope error in paycollect.pl

$borrower, $borrowernumber and $template and not visible in the
subroutine.
Using $b_ref and passing $template fixes the issue.

Test plan:
Under plack, use the pay selected button.
On the paycollect page, you should see the image of the patron

It certainly fixes some other bugs.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
members/paycollect.pl