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 --- post_bug.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 759c9c250..8ce7f0723 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -191,7 +191,7 @@ if (defined $cgi->param('version')) { if (defined($cgi->upload('data')) || $cgi->param('attachurl')) { $cgi->param('isprivate', $cgi->param('commentprivacy')); my $attachment = Bugzilla::Attachment->insert_attachment_for_bug(!THROW_ERROR, - $bug, $user, $timestamp, \$vars); + $bug, $user, $timestamp, $vars); if ($attachment) { # Update the comment to include the new attachment ID. @@ -227,7 +227,7 @@ my $error_mode_cache = Bugzilla->error_mode; Bugzilla->error_mode(ERROR_MODE_DIE); eval { Bugzilla::Flag::validate($cgi, $id, undef, SKIP_REQUESTEE_ON_ERROR); - Bugzilla::Flag::process($bug, undef, $timestamp, $cgi); + Bugzilla::Flag::process($bug, undef, $timestamp, $cgi, $vars); }; Bugzilla->error_mode($error_mode_cache); if ($@) { -- cgit v1.2.3-24-g4f1b