summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-03-24 07:32:19 +0100
committerterry%netscape.com <>1999-03-24 07:32:19 +0100
commit19ca3aa8dbc4f551836cd0dac9150118c9128ee1 (patch)
tree03ae4669a496ee9dee3ac21482bbf79089a2dc6a /query.cgi
parent57f0b7a2c7ed40c7eb2029bf1091c3f262b1e23f (diff)
downloadbugzilla-19ca3aa8dbc4f551836cd0dac9150118c9128ee1.tar.gz
bugzilla-19ca3aa8dbc4f551836cd0dac9150118c9128ee1.tar.xz
Can now query for a specified field being changed at a specified time,
optionally to a specified value.
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi30
1 files changed, 27 insertions, 3 deletions
diff --git a/query.cgi b/query.cgi
index 88a690534..08ac3f224 100755
--- a/query.cgi
+++ b/query.cgi
@@ -31,13 +31,13 @@ use vars @::legal_resolution,
@::legal_product,
@::legal_bug_status,
@::legal_priority,
- @::legal_resolution,
@::legal_opsys,
@::legal_platform,
@::legal_components,
@::legal_versions,
@::legal_severity,
@::legal_target_milestone,
+ @::log_columns,
%::versions,
%::components,
%::FORM;
@@ -62,7 +62,8 @@ my %type;
foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform",
"priority", "bug_severity", "product", "reporter", "op_sys",
- "component", "version",
+ "component", "version", "chfield", "chfieldfrom",
+ "chfieldto", "chfieldvalue",
"email1", "emailtype1", "emailreporter1",
"emailassigned_to1", "emailcc1", "emailqa_contact1",
"email2", "emailtype2", "emailreporter2",
@@ -92,6 +93,11 @@ foreach my $item (split(/\&/, $::buffer)) {
}
+if ($default{'chfieldto'} eq "") {
+ $default{'chfieldto'} = "Now";
+}
+
+
my $namelist = "";
@@ -375,8 +381,26 @@ $emailinput2<p>
+Changed in the <NOBR>last <INPUT NAME=changedin SIZE=2 VALUE=\"$default{'changedin'}\"> days.</NOBR>
-<NOBR>Changed in the last <INPUT NAME=changedin SIZE=2> days.</NOBR>
+<table>
+<tr>
+<td rowspan=2 align=right>Where the field(s)
+</td><td rowspan=2>
+<SELECT NAME=\"chfield\" MULTIPLE SIZE=4>
+@{[make_options(\@::log_columns, $default{'chfield'}, $type{'chfield'})]}
+</SELECT>
+</td><td rowspan=2>
+changed.
+</td><td>
+<nobr>dates <INPUT NAME=chfieldfrom SIZE=10 VALUE=\"$default{'chfieldfrom'}\"></nobr>
+<nobr>to <INPUT NAME=chfieldto SIZE=10 VALUE=\"$default{'chfieldto'}\"></nobr>
+</td>
+</tr>
+<tr>
+<td>changed to value <nobr><INPUT NAME=chfieldvalue SIZE=10> (optional)</nobr>
+</td>
+</table>
<P>