diff options
author | lpsolit%gmail.com <> | 2008-02-04 20:29:26 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-02-04 20:29:26 +0100 |
commit | 24c32fe3d8141ac056c6350ae148cfc30ddadfea (patch) | |
tree | 9b887cc8d182260e2a25b541bfd7b4fed8da1c00 /Bugzilla/Attachment.pm | |
parent | a9053d2b041eb08f939711005c53b66f9610f9bc (diff) | |
download | bugzilla-24c32fe3d8141ac056c6350ae148cfc30ddadfea.tar.gz bugzilla-24c32fe3d8141ac056c6350ae148cfc30ddadfea.tar.xz |
Bug 415155: Remove $cgi from the list of arguments when calling Bugzilla::Flag subroutines - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit
Diffstat (limited to 'Bugzilla/Attachment.pm')
-rw-r--r-- | Bugzilla/Attachment.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index b4ac9e6f0..314227c87 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -890,7 +890,7 @@ sub insert_attachment_for_bug { foreach my $obsolete_attachment (@obsolete_attachments) { # If the obsolete attachment has request flags, cancel them. # This call must be done before updating the 'attachments' table. - Bugzilla::Flag::CancelRequests($bug, $obsolete_attachment, $timestamp); + Bugzilla::Flag->CancelRequests($bug, $obsolete_attachment, $timestamp); $dbh->do('UPDATE attachments SET isobsolete = 1, modification_time = ? WHERE attach_id = ?', @@ -917,8 +917,8 @@ sub insert_attachment_for_bug { my $error_mode_cache = Bugzilla->error_mode; Bugzilla->error_mode(ERROR_MODE_DIE); eval { - Bugzilla::Flag::validate($cgi, $bug->bug_id, -1, SKIP_REQUESTEE_ON_ERROR); - Bugzilla::Flag->process($bug, $attachment, $timestamp, $cgi, $hr_vars); + Bugzilla::Flag::validate($bug->bug_id, -1, SKIP_REQUESTEE_ON_ERROR); + Bugzilla::Flag->process($bug, $attachment, $timestamp, $hr_vars); }; Bugzilla->error_mode($error_mode_cache); if ($@) { |