From: myk%mozilla.org <> Date: Sat, 13 Oct 2001 03:25:55 +0000 (+0000) Subject: Fix for bug 91486: Add "changed from" option to the boolean chart. X-Git-Tag: bugzilla-2.14.1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efb4a4102cc96f1f2d3cdfdec3b0158e15b2622;p=thirdparty%2Fbugzilla.git Fix for bug 91486: Add "changed from" option to the boolean chart. Patch by Stephen Lee . r=myk@mozilla.org --- diff --git a/buglist.cgi b/buglist.cgi index 42ddee9b86..c2eff0055b 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 978592549b..8ecb17e442 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"], );