aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 11:08:39 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 11:08:39 -0700
commit7ce9b17e54a32c62d92f0c5bf2101f5451a1560c (patch)
tree83b01b4c795c7c65e5284278c4ea054b3353be8c /email_in.pl
parentBug 560862: defined(%hash) is deprecated in Perl 5.12, so stop using it. (diff)
downloadbugzilla-7ce9b17e54a32c62d92f0c5bf2101f5451a1560c.tar.gz
bugzilla-7ce9b17e54a32c62d92f0c5bf2101f5451a1560c.tar.bz2
bugzilla-7ce9b17e54a32c62d92f0c5bf2101f5451a1560c.zip
Bug 539865: Make Bugzilla::Object pass $params to validators during create()
(implement VALIDATOR_DEPENDENCIES) r=LpSolit, a=LpSolit
Diffstat (limited to 'email_in.pl')
-rwxr-xr-xemail_in.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl
index 38ff17cc5..8e2c00053 100755
--- a/email_in.pl
+++ b/email_in.pl
@@ -243,7 +243,8 @@ sub handle_attachments {
# and this is our first attachment, then we make the comment an
# "attachment created" comment.
if ($comment and !$comment->type and !$update_comment) {
- $comment->set_type(CMT_ATTACHMENT_CREATED, $obj->id);
+ $comment->set_all({ type => CMT_ATTACHMENT_CREATED,
+ extra_data => $obj->id });
$update_comment = 1;
}
else {