From b62885e4be6593ec212a20ebc0a4305d79b2b7f9 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 8 Sep 2008 22:13:23 +0000 Subject: Bug 388251: Implement 'new Bugzilla::Attachment' - Patch by Frédéric Buclin a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_bug.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post_bug.cgi') 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) { -- cgit v1.2.3-24-g4f1b