return filter $filters, {
id => $self->type('int', $comment->id),
bug_id => $self->type('int', $comment->bug_id),
+ creator => $self->type('string', $comment->author->login),
author => $self->type('string', $comment->author->login),
time => $self->type('dateTime', $comment->creation_ts),
is_private => $self->type('boolean', $comment->is_private),
# Skipping attachment flags for now.
delete $attach->{flags};
- my $attacher = new Bugzilla::User($attach->attacher->id);
-
return filter $filters, {
creation_time => $self->type('dateTime', $attach->attached),
last_change_time => $self->type('dateTime', $attach->modification_time),
is_obsolete => $self->type('int', $attach->isobsolete),
is_url => $self->type('int', $attach->isurl),
is_patch => $self->type('int', $attach->ispatch),
- attacher => $self->type('string', $attacher->login)
+ creator => $self->type('string', $attach->attacher->login),
+ attacher => $self->type('string', $attach->attacher->login),
};
}
C<boolean> True if the attachment is a patch, False otherwise.
-=item C<attacher>
+=item C<creator>
C<string> The login name of the user that created the attachment.
+Also returned as C<attacher>, for backwards-compatibility with older
+Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
+5.0.)
+
=back
=item B<Errors>
=item Added in Bugzilla B<3.6>.
+=item In Bugzilla B<4.0>, the C<attacher> return value was renamed to
+C<creator>.
+
=back
=back
C<string> The actual text of the comment.
-=item author
+=item creator
C<string> The login name of the comment's author.
+Also returned as C<author>, for backwards-compatibility with older
+Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
+5.0.)
+
=item time
C<dateTime> The time (in Bugzilla's timezone) that the comment was added.
=item C<attachment_id> was added to the return value in Bugzilla B<3.6>.
+=item In Bugzilla B<4.0>, the C<author> return value was renamed to
+C<creator>.
+
=back
=back
C<dateTime> Searches for bugs that were created at this time or later.
May not be an array.
+=item C<creator>
+
+C<string> The login name of the user who created the bug.
+
=item C<id>
C<int> The numeric id of the bug.
C<string> The name of the Product that the bug is in.
-=item C<reporter>
+=item C<creator>
C<string> The login name of the user who reported the bug.
+You can also pass this argument with the name C<reporter>, for
+backwards compatibility with older Bugzillas.
+
=item C<resolution>
C<string> The current resolution--only set if a bug is closed. You can
=item Searching by C<votes> was removed in Bugzilla B<4.0>.
+=item The C<reporter> input parameter was renamed to C<creator>
+in Bugzilla B<4.0>.
+
=back
=back