diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-10-22 16:57:53 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-10-22 16:57:53 +0200 |
commit | 8c065446ba365d0899beb1546f396ebba20aa1bc (patch) | |
tree | 725f96861c944de056d9adba4b442282dbc40f86 /editflagtypes.cgi | |
parent | eeab8675bc5f0c0711a0e83ecd15cf29b3b1695e (diff) | |
download | bugzilla-8c065446ba365d0899beb1546f396ebba20aa1bc.tar.gz bugzilla-8c065446ba365d0899beb1546f396ebba20aa1bc.tar.xz |
Bug 523205 part 2: $flagtype->set_clusions() was badly implemented
a=LpSolit
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 4 |
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); |