From 41e381d9d5d1fe53fbf92127c3f65eac4f531f36 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 24 Aug 2006 22:56:39 +0000 Subject: Bug 343809: Merge FlagType::validate() with Flag::validate() - Patch by Frédéric Buclin a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_bug.cgi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index f90585020..95621c3ed 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -39,6 +39,7 @@ use Bugzilla::Product; use Bugzilla::Component; use Bugzilla::Keyword; use Bugzilla::Token; +use Bugzilla::Flag; my $user = Bugzilla->login(LOGIN_REQUIRED); @@ -447,11 +448,7 @@ if (defined($cgi->upload('data')) || $cgi->param('attachurl')) { my $error_mode_cache = Bugzilla->error_mode; Bugzilla->error_mode(ERROR_MODE_DIE); eval { - # Make sure no flags have already been set for this bug. - # Impossible? - Well, depends if you hack the URL or not. - # Passing a bug ID of 0 will make it complain if it finds one. - Bugzilla::Flag::validate($cgi, 0); - Bugzilla::FlagType::validate($cgi, $id); + Bugzilla::Flag::validate($cgi, $id); Bugzilla::Flag::process($bug, undef, $timestamp, $cgi); }; Bugzilla->error_mode($error_mode_cache); -- cgit v1.2.3-24-g4f1b