Commit 9efb4a41 authored by myk%mozilla.org's avatar myk%mozilla.org

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

Patch by Stephen Lee <slee@uk.bnsmc.com>. r=myk@mozilla.org
parent eda96005
...@@ -577,6 +577,15 @@ sub GenerateSQL { ...@@ -577,6 +577,15 @@ sub GenerateSQL {
push(@wherepart, "$table.fieldid = $ftable.fieldid"); push(@wherepart, "$table.fieldid = $ftable.fieldid");
$term = "($ftable.name = '$f' AND $table.bug_when > $q)"; $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 { ",changedto" => sub {
my $table = "act_$chartid"; my $table = "act_$chartid";
my $ftable = "fielddefs_$chartid"; my $ftable = "fielddefs_$chartid";
......
...@@ -890,6 +890,7 @@ my @types = ( ...@@ -890,6 +890,7 @@ my @types = (
["nowords", "none of the words"], ["nowords", "none of the words"],
["changedbefore", "changed before"], ["changedbefore", "changed before"],
["changedafter", "changed after"], ["changedafter", "changed after"],
["changedfrom", "changed from"],
["changedto", "changed to"], ["changedto", "changed to"],
["changedby", "changed by"], ["changedby", "changed by"],
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment