Bug 647649: Change the old "Boolean Charts" UI into the new AND/OR
"Custom Search" UI. r=timello, a=mkanat git-svn-id: svn://10.0.0.236/trunk@262354 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -149,9 +149,18 @@ sub clean_search_url {
|
||||
$self->delete("${param}_type");
|
||||
}
|
||||
|
||||
# Boolean Chart stuff is empty if it's "noop"
|
||||
if ($param =~ /\d-\d-\d/ && defined $self->param($param)
|
||||
&& $self->param($param) eq 'noop')
|
||||
# Custom Search stuff is empty if it's "noop". We also keep around
|
||||
# the old Boolean Chart syntax for backwards-compatibility.
|
||||
if (($param =~ /\d-\d-\d/ || $param =~ /^[[:alpha:]]\d+$/)
|
||||
&& defined $self->param($param) && $self->param($param) eq 'noop')
|
||||
{
|
||||
$self->delete($param);
|
||||
}
|
||||
|
||||
# Any "join" for custom search that's an AND can be removed, because
|
||||
# that's the default.
|
||||
if (($param =~ /^j\d+$/ || $param eq 'j_top')
|
||||
&& $self->param($param) eq 'AND')
|
||||
{
|
||||
$self->delete($param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user