Fixing bug 418068 for real. The previous patch was broken. Patch by Jesse Clark <jjclark1982@gmail.com> r=mkanat

git-svn-id: svn://10.0.0.236/trunk@246720 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com
2008-02-28 12:26:32 +00:00
parent 2d6679113d
commit cf51f9b3b1

View File

@@ -1226,15 +1226,15 @@ sub _long_desc_changedbefore_after {
my $self = shift;
my %func_args = @_;
my ($chartid, $t, $v, $supptables, $term) =
@func_args{qw(chartid v supptables term)};
@func_args{qw(chartid t v supptables term)};
my $dbh = Bugzilla->dbh;
my $operator = ($$t =~ /before/) ? '<' : '>';
my $table = "longdescs_$$chartid";
push(@$supptables, "LEFT JOIN longdescs AS $table " .
"ON $table.bug_id = bugs.bug_id " .
"AND $table.bug_when $operator " .
$dbh->quote(SqlifyDate($$v)) );
"AND $table.bug_when $operator " .
$dbh->quote(SqlifyDate($$v)) );
$$term = "($table.bug_when IS NOT NULL)";
}
@@ -1423,16 +1423,16 @@ sub _work_time_changedbefore_after {
my $self = shift;
my %func_args = @_;
my ($chartid, $t, $v, $supptables, $term) =
@func_args{qw(chartid v supptables term)};
@func_args{qw(chartid t v supptables term)};
my $dbh = Bugzilla->dbh;
my $operator = ($$t =~ /before/) ? '<' : '>';
my $table = "longdescs_$$chartid";
push(@$supptables, "LEFT JOIN longdescs AS $table " .
"ON $table.bug_id = bugs.bug_id " .
"AND $table.work_time <> 0" .
"AND $table.bug_when $operator " .
$dbh->quote(SqlifyDate($$v)) );
"AND $table.work_time <> 0" .
"AND $table.bug_when $operator " .
$dbh->quote(SqlifyDate($$v)) );
$$term = "($table.bug_when IS NOT NULL)";
}