@@ -, +, @@ --- C4/Suggestions.pm | 13 ++++++++++++- .../prog/en/modules/suggestion/suggestion.tt | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) --- a/C4/Suggestions.pm +++ a/C4/Suggestions.pm @@ -143,11 +143,22 @@ sub SearchSuggestion { }; } } + } else { + if ( defined $suggestion->{branchcode} && $suggestion->{branchcode} ) { + unless ( $suggestion->{branchcode} eq '__ANY__' ) { + push @sql_params, $suggestion->{branchcode}; + push @query, qq{ AND suggestions.branchcode=? }; + } + } else { + push @query, qq{ + AND (suggestions.branchcode='' OR suggestions.branchcode IS NULL) + }; + } } # filter on nillable fields foreach my $field ( - qw( STATUS branchcode itemtype suggestedby managedby acceptedby budgetid biblionumber ) + qw( STATUS itemtype suggestedby managedby acceptedby budgetid biblionumber ) ) { if ( exists $suggestion->{$field} ) { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -325,7 +325,7 @@ $(document).ready(function() { calcNewsuggTotal(); });
Acquisition information
  1. @@ -555,7 +555,7 @@ $(document).ready(function() { calcNewsuggTotal(); });
--