summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-25 11:50:35 +0100
committerterry%mozilla.org <>2000-01-25 11:50:35 +0100
commit5fc31978bdcfe2790ee48d930d1c2adafe66b204 (patch)
tree1ae545317ee6f60ada0cf71a9cacf25b0dbc7092 /query.cgi
parent2061c6577e975bd0471718b7effc42e7f91ada7e (diff)
downloadbugzilla-5fc31978bdcfe2790ee48d930d1c2adafe66b204.tar.gz
bugzilla-5fc31978bdcfe2790ee48d930d1c2adafe66b204.tar.xz
Added a way to query by bug numbers. Added an "edit this query" link
when you view a buglist.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi30
1 files changed, 28 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index f7484e033..09ec3b7fe 100755
--- a/query.cgi
+++ b/query.cgi
@@ -136,7 +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") {
+ "status_whiteboard_type", "keywords", "bug_id",
+ "bugidtype") {
$default{$name} = "";
$type{$name} = 0;
}
@@ -489,7 +490,32 @@ print "
$emailinput1<p>
</td></tr><tr><td colspan=2>
$emailinput2<p>
-</td></tr>
+</td></tr>";
+
+my $inclselected = "SELECTED";
+my $exclselected = "";
+
+
+if ($default{'bugidtype'} eq "exclude") {
+ $inclselected = "";
+ $exclselected = "SELECTED";
+}
+my $bug_id = value_quote($default{'bug_id'});
+
+print qq{
+<TR>
+<TD COLSPAN="3">
+<SELECT NAME="bugidtype">
+<OPTION VALUE="include" $inclselected>Only
+<OPTION VALUE="exclude" $exclselected>Exclude
+</SELECT>
+bugs numbered:
+<INPUT TYPE="text" NAME="bug_id" VALUE="$bug_id" SIZE=30>
+</TD>
+</TR>
+};
+
+print "
<tr>
<td>
Changed in the <NOBR>last <INPUT NAME=changedin SIZE=2 VALUE=\"$default{'changedin'}\"> days.</NOBR>