From 6836981ab03ade4b7fb0af9c7ec081a1448ec969 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 5 Sep 2006 20:08:47 +0000 Subject: Bug 345354: editflagtypes.cgi should remove requestees when a flagtype is no longer specifically requestable - Patch by Frédéric Buclin a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editflagtypes.cgi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'editflagtypes.cgi') diff --git a/editflagtypes.cgi b/editflagtypes.cgi index 1164177f5..2c03c4f1f 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -417,6 +417,13 @@ sub update { Bugzilla::Flag::clear($flag_id, $bug, $attachment); } + # Now silently remove requestees from flags which are no longer + # specifically requestable. + if (!$cgi->param('is_requesteeble')) { + $dbh->do('UPDATE flags SET requestee_id = NULL WHERE type_id = ?', + undef, $id); + } + $vars->{'name'} = $cgi->param('name'); $vars->{'message'} = "flag_type_changes_saved"; -- cgit v1.2.3-24-g4f1b