Permalink
Browse files

[delivers #14668229] Broken advanced search with branch groups

Parentheses were missing from around branches list.
  • Loading branch information...
1 parent abf15f0 commit 1117501ff37b694b1df74b23e3b6fdef4cc4def9 @ctfliblime ctfliblime committed Jul 11, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 catalogue/search.pl
View
@@ -431,10 +431,9 @@ =head3 Additional Notes
# limits are used to limit to results to a pre-defined category such as branch or language
my @limits;
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
-if($params->{'multibranchlimit'}) {
- push @limits, join(" or ",
- map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}
- ) ;
+if($params->{multibranchlimit}) {
+ my $branchlist = GetBranchesInCategory($params->{multibranchlimit});
+ push @limits, sprintf '(%s)', join(' or ', map { "branch: $_"} @{$branchlist});
}
my $available;
foreach my $limit(@limits) {

0 comments on commit 1117501

Please sign in to comment.