diff options
author | 2009-08-05 12:35:50 +0000 | |
---|---|---|
committer | 2009-08-05 12:35:50 +0000 | |
commit | d0002e9626b97df6fad2c597b89c8ec31f7c308a (patch) | |
tree | b14fd7ecb63ad9931b5c72e9c666ef499f0daa1d /editflagtypes.cgi | |
parent | Bug 508416: Bug flags are always displayed in the XML view of bugs - Patch by... (diff) | |
download | bugzilla-d0002e9626b97df6fad2c597b89c8ec31f7c308a.tar.gz bugzilla-d0002e9626b97df6fad2c597b89c8ec31f7c308a.tar.bz2 bugzilla-d0002e9626b97df6fad2c597b89c8ec31f7c308a.zip |
Bug 415541: Implement $bug->set_flags() and $attachment->set_flags() - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi index 4dbaae573..b730ae2e5 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -413,11 +413,7 @@ sub update { WHERE flags.type_id = ? AND i.type_id IS NULL', undef, $id); - my $flags = Bugzilla::Flag->new_from_list($flag_ids); - foreach my $flag (@$flags) { - my $bug = new Bugzilla::Bug($flag->bug_id); - Bugzilla::Flag::clear($flag, $bug, $flag->attachment); - } + Bugzilla::Flag->force_retarget($flag_ids); $flag_ids = $dbh->selectcol_arrayref('SELECT DISTINCT flags.id FROM flags @@ -431,11 +427,7 @@ sub update { AND (bugs.component_id = e.component_id OR e.component_id IS NULL)', undef, $id); - $flags = Bugzilla::Flag->new_from_list($flag_ids); - foreach my $flag (@$flags) { - my $bug = new Bugzilla::Bug($flag->bug_id); - Bugzilla::Flag::clear($flag, $bug, $flag->attachment); - } + Bugzilla::Flag->force_retarget($flag_ids); # Now silently remove requestees from flags which are no longer # specifically requestable. |