Bug 794389: There is no field named 'actual_time' when generating reports

r=glob a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@264298 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2012-10-04 11:31:26 +00:00
parent 04560897d6
commit 57ff2e2d89
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
8409
8410

View File

@@ -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)