Enclose xml-invalid hash keys into attributes
parent
4b8bea7b17
commit
41cf047168
|
@ -932,7 +932,7 @@ sub xml_dump_simple
|
|||
}
|
||||
elsif ($data =~ 'HASH')
|
||||
{
|
||||
$r = join '', map { xml_element($_, '', xml_dump_simple($data->{$_})) } keys %$data;
|
||||
$r = join '', map { xml_element((/^[a-z:_][a-z:_\.0-9]*$/is ? ($_, '') : ('i', { key => $_ })), xml_dump_simple($data->{$_})) } keys %$data;
|
||||
}
|
||||
elsif ($data =~ 'SCALAR')
|
||||
{
|
||||
|
|
|
@ -371,6 +371,9 @@ sub _translate_comment {
|
|||
attachment_id => $self->type('int', $attach_id),
|
||||
count => $self->type('int', $comment->{count}),
|
||||
};
|
||||
if (Bugzilla->user->is_timetracker) {
|
||||
$comment_hash->{work_time} = $self->type('double', $comment->{work_time});
|
||||
}
|
||||
|
||||
return filter($filters, $comment_hash, $types, $prefix);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue