diff options
author | jake%bugzilla.org <> | 2004-12-31 16:00:03 +0100 |
---|---|---|
committer | jake%bugzilla.org <> | 2004-12-31 16:00:03 +0100 |
commit | c7c879f60a802fb2b3760cfb57510f47a0d25022 (patch) | |
tree | 657b5c99e57c7c85a7725b53cc106531d19ff607 /query.cgi | |
parent | 41fb744271f2a21a051c9d57b126d201e2f51b02 (diff) | |
download | bugzilla-c7c879f60a802fb2b3760cfb57510f47a0d25022.tar.gz bugzilla-c7c879f60a802fb2b3760cfb57510f47a0d25022.tar.xz |
Bug 275019 - The query page no longer selects the defaults when the only options passed via the URL are for the boolean charts.
r=mkanat, a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -163,10 +163,18 @@ sub PrefillForm { $value = ""; } + # If the name begins with field, type, or value, then it is part of + # the boolean charts. Because these are built different than the rest + # of the form, we don't need to save a default value. We do, however, + # need to indicate that we found something so the default query isn't + # added in if all we have are boolean chart items. + if ($name =~ m/^(?:field|type|value)/) { + $foundone = 1; + } # If the name ends in a number (which it does for the fields which # are part of the email searching), we use the array # positions to show the defaults for that number field. - if ($name =~ m/^(.+)(\d)$/ && defined($default{$1})) { + elsif ($name =~ m/^(.+)(\d)$/ && defined($default{$1})) { $foundone = 1; $default{$1}->[$2] = $value; } |