aboutsummaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-09-08 22:13:23 +0000
committerlpsolit%gmail.com <>2008-09-08 22:13:23 +0000
commitb62885e4be6593ec212a20ebc0a4305d79b2b7f9 (patch)
tree444cd9e58f30699d908deafbdb560d7ed5eee3c8 /post_bug.cgi
parent4dd427ea99673391d923db9682836d344f178b54 (diff)
downloadbugs-b62885e4be6593ec212a20ebc0a4305d79b2b7f9.tar
bugs-b62885e4be6593ec212a20ebc0a4305d79b2b7f9.tar.gz
bugs-b62885e4be6593ec212a20ebc0a4305d79b2b7f9.tar.bz2
bugs-b62885e4be6593ec212a20ebc0a4305d79b2b7f9.tar.xz
bugs-b62885e4be6593ec212a20ebc0a4305d79b2b7f9.zip
Bug 388251: Implement 'new Bugzilla::Attachment' - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 957e7b75f..31c70b0af 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -194,7 +194,7 @@ if (defined $cgi->param('version')) {
# Add an attachment if requested.
if (defined($cgi->upload('data')) || $cgi->param('attachurl')) {
$cgi->param('isprivate', $cgi->param('commentprivacy'));
- my $attachment = Bugzilla::Attachment->insert_attachment_for_bug(!THROW_ERROR,
+ my $attachment = Bugzilla::Attachment->create(!THROW_ERROR,
$bug, $user, $timestamp, $vars);
if ($attachment) {