From: Frédéric Buclin Date: Thu, 4 Oct 2012 11:30:23 +0000 (+0200) Subject: Bug 794389: There is no field named 'actual_time' when generating reports X-Git-Tag: bugzilla-4.2.4~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb8cd75f535c7db8e072f85e44a6b1b1d9405b6;p=thirdparty%2Fbugzilla.git Bug 794389: There is no field named 'actual_time' when generating reports r=glob a=LpSolit --- diff --git a/report.cgi b/report.cgi index 4230ade368..cc43e66e43 100755 --- a/report.cgi +++ b/report.cgi @@ -304,6 +304,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)