From 7cde3e216bc4ca120ed1cfe983b690a4f3f6944c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 1 Jul 2016 11:39:00 -0400 Subject: [PATCH] Bug 15128 - (QA Followup) Don't get patrons suggestions if limit not set 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 4691d0ed10..52c0775c26 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -113,7 +113,7 @@ if ( $op eq 'else' ) { } my $patrons_pending_suggestions_count = 0; -if ( $borrowernumber ) { +if ( $borrowernumber && C4::Context->preference("MaxOpenSuggestions") ne '' ) { $patrons_pending_suggestions_count = scalar @{ SearchSuggestion( { suggestedby => $borrowernumber, STATUS => 'ASKED' } ) } ; } -- 2.39.5