Fix for bug 91486: Add "changed from" option to the boolean chart.

Patch by Stephen Lee <slee@uk.bnsmc.com>.
r=myk@mozilla.org
This commit is contained in:
myk%mozilla.org 2001-10-12 20:25:57 +00:00
parent 7cf2052dc9
commit a371e77bbd
2 changed files with 10 additions and 0 deletions

View File

@ -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";

View File

@ -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"],
);