@@ -, +, @@ --- 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 @@ -132,11 +132,22 @@ sub SearchSuggestion { push @query,q{ and (suggestions.branchcode = ? or suggestions.branchcode ='')}; } } + } 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) + }; + } } foreach my $field (grep { my $fieldname=$_; any {$fieldname eq $_ } qw< - STATUS branchcode itemtype suggestedby managedby acceptedby + STATUS itemtype suggestedby managedby acceptedby bookfundid biblionumber >} keys %$suggestion ) { --- 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. @@ -558,7 +558,7 @@ $(document).ready(function() { calcNewsuggTotal(); });
--