summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"],
);