aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyk%mozilla.org <>2001-10-13 03:25:55 +0000
committermyk%mozilla.org <>2001-10-13 03:25:55 +0000
commit9efb4a4102cc96f1f2d3cdfdec3b0158e15b2622 (patch)
tree604d76da8c893e90736a0386a6665b4b240464fa
parentBacking out Gerv's checkin for bug 71840. Per the bug report, it did not hav... (diff)
downloadbugzilla-9efb4a4102cc96f1f2d3cdfdec3b0158e15b2622.tar.gz
bugzilla-9efb4a4102cc96f1f2d3cdfdec3b0158e15b2622.tar.bz2
bugzilla-9efb4a4102cc96f1f2d3cdfdec3b0158e15b2622.zip
Fix for bug 91486: Add "changed from" option to the boolean chart.
Patch by Stephen Lee <slee@uk.bnsmc.com>. r=myk@mozilla.org
-rwxr-xr-xbuglist.cgi9
-rwxr-xr-xquery.cgi1
2 files changed, 10 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 42ddee9b8..c2eff0055 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -577,6 +577,15 @@ sub GenerateSQL {
push(@wherepart, "$table.fieldid = $ftable.fieldid");
$term = "($ftable.name = '$f' AND $table.bug_when > $q)";
},
+ ",changedfrom" => sub {
+ my $table = "act_$chartid";
+ my $ftable = "fielddefs_$chartid";
+ push(@supptables, "bugs_activity $table");
+ push(@supptables, "fielddefs $ftable");
+ push(@wherepart, "$table.bug_id = bugs.bug_id");
+ push(@wherepart, "$table.fieldid = $ftable.fieldid");
+ $term = "($ftable.name = '$f' AND $table.removed = $q)";
+ },
",changedto" => sub {
my $table = "act_$chartid";
my $ftable = "fielddefs_$chartid";
diff --git a/query.cgi b/query.cgi
index 978592549..8ecb17e44 100755
--- a/query.cgi
+++ b/query.cgi
@@ -890,6 +890,7 @@ my @types = (
["nowords", "none of the words"],
["changedbefore", "changed before"],
["changedafter", "changed after"],
+ ["changedfrom", "changed from"],
["changedto", "changed to"],
["changedby", "changed by"],
);