Bug 15128 - (QA Followup) Don't get patrons suggestions if limit not set
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
074a3ee338
commit
7cde3e216b
|
|
@ -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' } ) } ;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue