summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-09 20:05:58 +0200
committerlpsolit%gmail.com <>2007-10-09 20:05:58 +0200
commita81a0804496d263f9de71b03e2ebf612e3c534cc (patch)
treeadaffee611017c7a2b0a6335ab9eb2e774e8a95c /post_bug.cgi
parent4f4d96be9d33570d60da58a17b1da0d9d52bbe27 (diff)
downloadbugzilla-a81a0804496d263f9de71b03e2ebf612e3c534cc.tar.gz
bugzilla-a81a0804496d263f9de71b03e2ebf612e3c534cc.tar.xz
Midair with product change while adding an attachment silently clears flags - Patch by Tiago R. Mello <timello@gmail.com> r/a=LpSolit
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi4
1 files changed, 2 insertions, 2 deletions
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 ($@) {