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:
mkanat%bugzilla.org
2011-05-31 16:32:47 +00:00
parent 994c05d850
commit a7d5a2e186
10 changed files with 303 additions and 202 deletions

View File

@@ -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);
}