]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 91486: Add "changed from" option to the boolean chart.
authormyk%mozilla.org <>
Sat, 13 Oct 2001 03:25:55 +0000 (03:25 +0000)
committermyk%mozilla.org <>
Sat, 13 Oct 2001 03:25:55 +0000 (03:25 +0000)
Patch by Stephen Lee <slee@uk.bnsmc.com>.
r=myk@mozilla.org

buglist.cgi
query.cgi

index 42ddee9b8654b5be94456aadf7e4e3b3ff4db0cd..c2eff0055bbab8c0001093bbfd3ee68ca58c70c9 100755 (executable)
@@ -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";
index 978592549b6df52fab76355d6d2d13e478676678..8ecb17e442bf2b421adcd3f7594f9d8adc7fa8cf 100755 (executable)
--- 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"],
             );