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