From 074a3ee3383b6038f29f8859cf6c96accc6fa072 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 Signed-off-by: Kyle M Hall --- 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 26bc4f8998..4691d0ed10 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.39.5