summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 20:08:39 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 20:08:39 +0200
commit7ce9b17e54a32c62d92f0c5bf2101f5451a1560c (patch)
tree83b01b4c795c7c65e5284278c4ea054b3353be8c /post_bug.cgi
parent1ca0fef039a59342427d9e853a2d89ab6300c147 (diff)
downloadbugzilla-7ce9b17e54a32c62d92f0c5bf2101f5451a1560c.tar.gz
bugzilla-7ce9b17e54a32c62d92f0c5bf2101f5451a1560c.tar.xz
Bug 539865: Make Bugzilla::Object pass $params to validators during create()
(implement VALIDATOR_DEPENDENCIES) r=LpSolit, a=LpSolit
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 881568298..0f78cc5cd 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -217,7 +217,8 @@ if (defined($cgi->upload('data')) || $cgi->param('attachurl')) {
$attachment->set_flags($flags, $new_flags);
$attachment->update($timestamp);
my $comment = $bug->comments->[0];
- $comment->set_type(CMT_ATTACHMENT_CREATED, $attachment->id);
+ $comment->set_all({ type => CMT_ATTACHMENT_CREATED,
+ extra_data => $attachment->id });
$comment->update();
}
else {