From 24c32fe3d8141ac056c6350ae148cfc30ddadfea Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 4 Feb 2008 19:29:26 +0000 Subject: Bug 415155: Remove $cgi from the list of arguments when calling Bugzilla::Flag subroutines - Patch by Frédéric Buclin a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Attachment.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Bugzilla/Attachment.pm') 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 ($@) { -- cgit v1.2.3-24-g4f1b