From f8a6f62d45b556251820f18f45bc4a3661af142e Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 30 Aug 2017 09:37:48 -0400 Subject: [PATCH] Bug 19205 - Pay selected fine generates 500 error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Using the pay selected option from the borrowers account, to pay for one specific fine among other gives a 500 error, despite the payment going through. Test Plan: 1) Add two fines using the Create manual invoice function. 2) Select one fine and "pay selected". 3) Pay a part of the amount. 4) Note error 5) Apply this patch 6) Repeat steps 1-3 7) No error! Signed-off-by: Andreas Hedström Mace Signed-off-by: Jonathan Druart (cherry picked from commit 86e8612c020cea44be123be45f2e503af38ef98b) Signed-off-by: Fridolin Somers --- members/paycollect.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/paycollect.pl b/members/paycollect.pl index 9784e88d35..26236490a9 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -139,7 +139,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { { order_by => 'date' } ); - return Koha::Account->new( + Koha::Account->new( { patron_id => $borrowernumber, } -- 2.39.5