From a81a0804496d263f9de71b03e2ebf612e3c534cc Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 9 Oct 2007 18:05:58 +0000 Subject: Midair with product change while adding an attachment silently clears flags - Patch by Tiago R. Mello r/a=LpSolit --- attachment.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index d9521b591..82f650f3c 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -348,7 +348,7 @@ sub insert { my $bug = new Bugzilla::Bug($bugid); my $attachment = Bugzilla::Attachment->insert_attachment_for_bug(THROW_ERROR, $bug, $user, - $timestamp, \$vars); + $timestamp, $vars); # Insert a comment about the new attachment into the database. my $comment = "Created an attachment (id=" . $attachment->id . ")\n" . @@ -508,7 +508,7 @@ sub update { # to attachments so that we can delete pending requests if the user # is obsoleting this attachment without deleting any requests # the user submits at the same time. - Bugzilla::Flag::process($bug, $attachment, $timestamp, $cgi); + Bugzilla::Flag::process($bug, $attachment, $timestamp, $cgi, $vars); # Update the attachment record in the database. $dbh->do("UPDATE attachments -- cgit v1.2.3-24-g4f1b