From e2e1aec468cea438f47486c826823c94af4fef87 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Fri, 3 Jul 2015 01:00:27 +0000 Subject: [PATCH] Bug 14483: Same change but better Use of uninitialized value $roadtype To test: 1) Go to any patron's page, click Print --> Print summary 2) Notice warns in error log 3) Click cancel, apply patch, reload page 4) Click Print --> Print summary 5) Notice warns are gone and page still works correctly --- members/summary-print.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/members/summary-print.pl b/members/summary-print.pl index fa2efaa..a808aae 100755 --- a/members/summary-print.pl +++ b/members/summary-print.pl @@ -57,6 +57,7 @@ foreach my $accountline (@$accts) { my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $data->{streettype} ); $roadtype //= ''; + our $totalprice = 0; $template->param( %$data, -- 1.7.10.4