diff options
author | lpsolit%gmail.com <> | 2007-10-09 18:05:58 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-09 18:05:58 +0000 |
commit | a81a0804496d263f9de71b03e2ebf612e3c534cc (patch) | |
tree | adaffee611017c7a2b0a6335ab9eb2e774e8a95c /attachment.cgi | |
parent | 4f4d96be9d33570d60da58a17b1da0d9d52bbe27 (diff) | |
download | bugs-a81a0804496d263f9de71b03e2ebf612e3c534cc.tar bugs-a81a0804496d263f9de71b03e2ebf612e3c534cc.tar.gz bugs-a81a0804496d263f9de71b03e2ebf612e3c534cc.tar.bz2 bugs-a81a0804496d263f9de71b03e2ebf612e3c534cc.tar.xz bugs-a81a0804496d263f9de71b03e2ebf612e3c534cc.zip |
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 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
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 |