Bug 15128 - (QA Followup) Fix use of 'my' variable causing loss of data
authorNick Clemens <nick@bywatersolutions.com>
Fri, 1 Jul 2016 15:36:02 +0000 (11:36 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 14:09:49 +0000 (14:09 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-suggestions.pl

index 26bc4f8..4691d0e 100755 (executable)
@@ -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);