From bcdeb0b9c577ecced7e970e53028cca5345fbfa6 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 4 Oct 2012 13:28:03 +0200 Subject: Bug 794389: There is no field named 'actual_time' when generating reports r=glob a=LpSolit --- report.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'report.cgi') diff --git a/report.cgi b/report.cgi index 5c7ec870b..e0e141605 100755 --- a/report.cgi +++ b/report.cgi @@ -337,6 +337,10 @@ $template->process("$format->{'template'}", $vars) sub get_names { my ($names, $isnumeric, $field_name) = @_; my ($field, @sorted); + # XXX - This is a hack to handle the actual_time/work_time field, + # because it's named 'actual_time' in Search.pm but 'work_time' in Field.pm. + $_[2] = $field_name = 'work_time' if $field_name eq 'actual_time'; + # _realname fields aren't real Bugzilla::Field objects, but they are a # valid axis, so we don't vailidate them as Bugzilla::Field objects. $field = Bugzilla::Field->check($field_name) -- cgit v1.2.3-24-g4f1b