diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-10-04 13:28:03 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-10-04 13:28:03 +0200 |
commit | bcdeb0b9c577ecced7e970e53028cca5345fbfa6 (patch) | |
tree | a47d2551a008a9247e78fb4e6ec1245e7f59f337 /report.cgi | |
parent | 658c6813fa1bd10d4fd2add711a660720d6fa44b (diff) | |
download | bugzilla-bcdeb0b9c577ecced7e970e53028cca5345fbfa6.tar.gz bugzilla-bcdeb0b9c577ecced7e970e53028cca5345fbfa6.tar.xz |
Bug 794389: There is no field named 'actual_time' when generating reports
r=glob a=LpSolit
Diffstat (limited to 'report.cgi')
-rwxr-xr-x | report.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
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) |