Bug 25033: (follow-up) Don't limit suggestions to branches if displaying by branch
In the case of organizing by branches we should not filter by branch Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
258f461cfe
commit
adbf2b7ba9
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ if ($op=~/else/) {
|
|||
}
|
||||
my $definedvalue = defined $$suggestion_ref{$displayby} && $$suggestion_ref{$displayby} ne "";
|
||||
|
||||
next if ( $definedvalue && $$suggestion_ref{$displayby} ne $criteriumvalue ) and ($displayby ne 'branchcode' or $branchfilter ne '__ANY__' );
|
||||
next if ( $definedvalue && $$suggestion_ref{$displayby} ne $criteriumvalue ) and ($displayby ne 'branchcode' && $branchfilter ne '__ANY__' );
|
||||
$$suggestion_ref{$displayby} = $criteriumvalue;
|
||||
|
||||
my $suggestions = &SearchSuggestion({ %$suggestion_ref, archived => $filter_archived });
|
||||
|
|
Loading…
Reference in a new issue