@@ -, +, @@ --- opac/opac-suggestions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/opac/opac-suggestions.pl +++ a/opac/opac-suggestions.pl @@ -131,8 +131,8 @@ if ( $borrowernumber && C4::Context->preference("MaxOpenSuggestions") ne '' ) { $patrons_pending_suggestions_count = scalar @{ SearchSuggestion( { suggestedby => $borrowernumber, STATUS => 'ASKED' } ) } ; } -my $suggestions_loop = &SearchSuggestion($suggestion); if ( $op eq "add_confirm" ) { + my $suggestions_loop = &SearchSuggestion($suggestion); if ( C4::Context->preference("MaxOpenSuggestions") ne '' && $patrons_pending_suggestions_count >= C4::Context->preference("MaxOpenSuggestions") ) #only check limit for signed in borrowers { push @messages, { type => 'error', code => 'too_many' }; --