summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-15 23:06:01 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-15 23:06:01 +0100
commit2b8db9971cd029465b994ba4da5e4a896c206035 (patch)
treee555390c17bfd1fe0b021321cbc642f3659e41a6 /Bugzilla
parentc93887f249fa25405aad68c56995cdcd2efc1e91 (diff)
downloadbugzilla-2b8db9971cd029465b994ba4da5e4a896c206035.tar.gz
bugzilla-2b8db9971cd029465b994ba4da5e4a896c206035.tar.xz
Bug 619466: Make searching by work_time search the total time on the bug
instead of searching the time on individual comments. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 7dc0f2c00..2220abf1e 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2323,11 +2323,8 @@ sub _work_time_changedbefore_after {
sub _work_time {
my ($self, $args) = @_;
- my ($chart_id, $joins) = @$args{qw(chart_id joins)};
-
- my $table = "longdescs_$chart_id";
- push(@$joins, { table => 'longdescs', as => $table });
- $args->{full_field} = "$table.work_time";
+ $self->_add_extra_column('actual_time');
+ $args->{full_field} = COLUMNS->{actual_time}->{name};
}
sub _percentage_complete {