diff options
| author | lpsolit%gmail.com <> | 2006-08-24 22:56:39 +0000 |
|---|---|---|
| committer | lpsolit%gmail.com <> | 2006-08-24 22:56:39 +0000 |
| commit | 41e381d9d5d1fe53fbf92127c3f65eac4f531f36 (patch) | |
| tree | f1d680fa63706d55f3a9720e3d9bb821e9d2eca4 /process_bug.cgi | |
| parent | 6d154983302359ba9d38e1ff659c580853f68c2d (diff) | |
| download | bugs-41e381d9d5d1fe53fbf92127c3f65eac4f531f36.tar bugs-41e381d9d5d1fe53fbf92127c3f65eac4f531f36.tar.gz bugs-41e381d9d5d1fe53fbf92127c3f65eac4f531f36.tar.bz2 bugs-41e381d9d5d1fe53fbf92127c3f65eac4f531f36.tar.xz bugs-41e381d9d5d1fe53fbf92127c3f65eac4f531f36.zip | |
Bug 343809: Merge FlagType::validate() with Flag::validate() - Patch by Frédéric Buclin <LpSolit@gmail.com> a=myk
Diffstat (limited to 'process_bug.cgi')
| -rwxr-xr-x | process_bug.cgi | 8 |
1 files changed, 2 insertions, 6 deletions
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 |
