From 2b8db9971cd029465b994ba4da5e4a896c206035 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 15 Dec 2010 14:06:01 -0800 Subject: 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) --- Bugzilla/Search.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Bugzilla') 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 { -- cgit v1.2.3-24-g4f1b