summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-27 06:48:35 +0100
committerterry%mozilla.org <>2000-01-27 06:48:35 +0100
commitc6c81144fc9c5976e3a747a27b469f7d9d991e67 (patch)
treeec3fcc95eb19bc3da8d5fd0f6f023ef07213d7af /query.cgi
parentafdd0f2f0d165670329b1c63bbad2f5aebcf60cf (diff)
downloadbugzilla-c6c81144fc9c5976e3a747a27b469f7d9d991e67.tar.gz
bugzilla-c6c81144fc9c5976e3a747a27b469f7d9d991e67.tar.xz
Allow searches for "all keywords" or "no keywords"; fixed some other
bugs around keyword queries.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi25
1 files changed, 13 insertions, 12 deletions
diff --git a/query.cgi b/query.cgi
index 0b6211bfb..5ed72da9b 100755
--- a/query.cgi
+++ b/query.cgi
@@ -136,8 +136,8 @@ sub ProcessFormStuff {
"changedin", "votes", "short_desc", "short_desc_type",
"long_desc", "long_desc_type", "bug_file_loc",
"bug_file_loc_type", "status_whiteboard",
- "status_whiteboard_type", "keywords", "bug_id",
- "bugidtype") {
+ "status_whiteboard_type", "bug_id",
+ "bugidtype", "keywords", "keywords_type") {
$default{$name} = "";
$type{$name} = 0;
}
@@ -643,18 +643,19 @@ if (@::legal_keywords) {
print qq{
<TR>
<TD ALIGN="right"><A HREF="describekeywords.cgi">Keywords</A>:</TD>
-<TD><INPUT NAME="keywords" SIZE=30 VALUE=$def></TD>
-<TD><SELECT NAME=keywords_type>
+<TD><INPUT NAME="keywords" SIZE=30 VALUE="$def"></TD>
+<TD>
};
- foreach my $i (["or", "Any of the listed keywords set"]) {
- my ($n, $d) = (@$i);
- my $sel = "";
- if ($default{"keywords"} eq $n) {
- $sel = " SELECTED";
- }
- print qq{<OPTION VALUE="$n"$sel>$d\n};
+ my $type = $default{"keywords_type"};
+ if ($type eq "or") { # Backward compatability hack.
+ $type = "anywords";
}
- print qq{</SELECT></TD></TR>};
+ print BuildPulldown("keywords_type",
+ [["anywords", "Any of the listed keywords set"],
+ ["allwords", "All of the listed keywords set"],
+ ["nowords", "None of the listed keywords set"]],
+ $type);
+ print qq{</TD></TR>};
}
print "