summaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search/FieldTest.pm
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 /xt/lib/Bugzilla/Test/Search/FieldTest.pm
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 'xt/lib/Bugzilla/Test/Search/FieldTest.pm')
-rw-r--r--xt/lib/Bugzilla/Test/Search/FieldTest.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/FieldTest.pm b/xt/lib/Bugzilla/Test/Search/FieldTest.pm
index fd3c7b6c7..56c0a57d6 100644
--- a/xt/lib/Bugzilla/Test/Search/FieldTest.pm
+++ b/xt/lib/Bugzilla/Test/Search/FieldTest.pm
@@ -335,6 +335,9 @@ sub _field_values_for_bug {
elsif ($field eq 'longdescs.count') {
@values = scalar(@{ $self->bug($number)->comments });
}
+ elsif ($field eq 'work_time') {
+ @values = $self->_values_for($number, 'actual_time');
+ }
elsif ($field eq 'bug_group') {
@values = $self->_values_for($number, 'groups_in', 'name');
}