aboutsummaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-10-22 16:57:53 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-10-22 16:57:53 +0200
commit8c065446ba365d0899beb1546f396ebba20aa1bc (patch)
tree725f96861c944de056d9adba4b442282dbc40f86 /editflagtypes.cgi
parenteeab8675bc5f0c0711a0e83ecd15cf29b3b1695e (diff)
downloadbugs-8c065446ba365d0899beb1546f396ebba20aa1bc.tar
bugs-8c065446ba365d0899beb1546f396ebba20aa1bc.tar.gz
bugs-8c065446ba365d0899beb1546f396ebba20aa1bc.tar.bz2
bugs-8c065446ba365d0899beb1546f396ebba20aa1bc.tar.xz
bugs-8c065446ba365d0899beb1546f396ebba20aa1bc.zip
Bug 523205 part 2: $flagtype->set_clusions() was badly implemented
a=LpSolit
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index e2b8ba12c..3e3f94f2e 100755
--- a/editflagtypes.cgi
+++ b/editflagtypes.cgi
@@ -126,6 +126,7 @@ if (my ($category_action) = grep { $_ =~ /^categoryAction-(?:\w+)$/ } $cgi->para
$type->{'exclusions'} = \%exclusions;
$vars->{'type'} = $type;
$vars->{'token'} = $token;
+ $vars->{'check_clusions'} = 1;
$template->process("admin/flag-type/edit.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
@@ -305,7 +306,8 @@ if ($action eq 'update') {
$flagtype->set_is_multiplicable($is_multiplicable);
$flagtype->set_grant_group($grant_group);
$flagtype->set_request_group($request_group);
- $flagtype->set_clusions({ inclusions => \@inclusions, exclusions => \@exclusions});
+ $flagtype->set_clusions({ inclusions => \@inclusions, exclusions => \@exclusions})
+ if $cgi->param('check_clusions');
my $changes = $flagtype->update();
delete_token($token);