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 --- process_bug.cgi | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 156f75620..e14900245 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -54,10 +54,7 @@ use Bugzilla::Field; use Bugzilla::Product; use Bugzilla::Component; use Bugzilla::Keyword; - -# Use the Flag module to modify flag data if the user set flags. use Bugzilla::Flag; -use Bugzilla::FlagType; my $user = Bugzilla->login(LOGIN_REQUIRED); local our $whoid = $user->id; @@ -214,8 +211,8 @@ foreach my $field ("dependson", "blocked") { # do a match on the fields if applicable -# The order of these function calls is important, as both Flag::validate -# and FlagType::validate assume User::match_field has ensured that the values +# The order of these function calls is important, as Flag::validate +# assumes User::match_field has ensured that the values # in the requestee fields are legitimate user email addresses. &Bugzilla::User::match_field($cgi, { 'qa_contact' => { 'type' => 'single' }, @@ -228,7 +225,6 @@ foreach my $field ("dependson", "blocked") { # Validate flags in all cases. validate() should not detect any # reference to flags if $cgi->param('id') is undefined. Bugzilla::Flag::validate($cgi, $cgi->param('id')); -Bugzilla::FlagType::validate($cgi, $cgi->param('id')); ###################################################################### # End Data/Security Validation -- cgit v1.2.3-24-g4f1b