diff options
author | mozilla%colinogilvie.co.uk <> | 2005-07-20 05:38:14 +0000 |
---|---|---|
committer | mozilla%colinogilvie.co.uk <> | 2005-07-20 05:38:14 +0000 |
commit | 82787bc9132869edb068904dfc8123414c115639 (patch) | |
tree | defa3df28ae742034c5ea9bd321011d37dbf8b12 /Bugzilla | |
parent | 3d9cbd26f5bcf6cba530a6693c2536f90c5bade1 (diff) | |
download | bugs-82787bc9132869edb068904dfc8123414c115639.tar bugs-82787bc9132869edb068904dfc8123414c115639.tar.gz bugs-82787bc9132869edb068904dfc8123414c115639.tar.bz2 bugs-82787bc9132869edb068904dfc8123414c115639.tar.xz bugs-82787bc9132869edb068904dfc8123414c115639.zip |
Bug 282737: Software Error from time-tracking fields during Change Columns
Patch by Joel, Me, r=wurblzap, a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 96f38fc06..e7b7739be 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -148,6 +148,11 @@ sub init { push @supptables, "INNER JOIN components AS map_components " . "ON bugs.component_id = map_components.id"; } + + if (grep($_ =~/AS (actual_time|percentage_complete)$/, @$fieldsref)) { + push(@supptables, "INNER JOIN longdescs AS ldtime " . + "ON ldtime.bug_id = bugs.bug_id"); + } my $minvotes; if (defined $params->param('votes')) { @@ -218,11 +223,6 @@ sub init { push(@specialchart, ["keywords", $t, $params->param('keywords')]); } - if (lsearch($fieldsref, "(SUM(ldtime.work_time)*COUNT(DISTINCT ldtime.bug_when)/COUNT(bugs.bug_id)) AS actual_time") != -1) { - push(@supptables, "INNER JOIN longdescs AS ldtime " . - "ON ldtime.bug_id = bugs.bug_id"); - } - foreach my $id ("1", "2") { if (!defined ($params->param("email$id"))) { next; |