From fe00fd5ead81c2319b7812e01811760a8cd2b812 Mon Sep 17 00:00:00 2001
From: Aleisha Amohia <aleishaamohia@hotmail.com>
Date: Tue, 5 Sep 2017 22:05:36 +0000
Subject: [PATCH] Bug 19258: Prevent warn when paying a fine or charge

To test:
1) Go to a members detail page in staff side and create a manual invoice
2) Go to the pay fines tab, select any fines and click Pay amount
3) Notice warn
4) Apply patch and repeat steps 1 & 2
5) Warn should be gone

Sponsored-by: Catalyst IT
---
 members/paycollect.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/members/paycollect.pl b/members/paycollect.pl
index 0994842..f880f57 100755
--- a/members/paycollect.pl
+++ b/members/paycollect.pl
@@ -69,7 +69,7 @@ my $individual   = $input->param('pay_individual');
 my $writeoff     = $input->param('writeoff_individual');
 my $select_lines = $input->param('selected');
 my $select       = $input->param('selected_accts');
-my $payment_note = uri_unescape $input->param('payment_note');
+my $payment_note = uri_unescape scalar $input->param('payment_note');
 my $accountlines_id;
 
 if ( $individual || $writeoff ) {
-- 
2.1.4