From ad27b003c1ce229fe8d409605215074463cbb1da Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 1 Jul 2016 11:36:02 -0400 Subject: [PATCH] Bug 15128 - (QA Followup) Fix use of 'my' variable causing loss of data Signed-off-by: Jonathan Druart --- opac/opac-suggestions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl index 26bc4f8..4691d0e 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -114,7 +114,7 @@ if ( $op eq 'else' ) { my $patrons_pending_suggestions_count = 0; if ( $borrowernumber ) { - my $patrons_pending_suggestions_count = scalar @{ SearchSuggestion( { suggestedby => $borrowernumber, STATUS => 'ASKED' } ) } ; + $patrons_pending_suggestions_count = scalar @{ SearchSuggestion( { suggestedby => $borrowernumber, STATUS => 'ASKED' } ) } ; } my $suggestions_loop = &SearchSuggestion($suggestion); -- 2.8.1