diff options
author | lpsolit%gmail.com <> | 2006-07-14 03:37:08 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-07-14 03:37:08 +0200 |
commit | b0afe45f807cca40b3c6971859ce0a7b2d59584b (patch) | |
tree | 3ae8ae2a9607165bc3863177b41e183ac305e81f /Bugzilla/Config | |
parent | abb2584a665994fbde3117eae3a10069b4353509 (diff) | |
download | bugzilla-b0afe45f807cca40b3c6971859ce0a7b2d59584b.tar.gz bugzilla-b0afe45f807cca40b3c6971859ce0a7b2d59584b.tar.xz |
Bug 344448: editparams.cgi doesn't let me clear a group - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla/Config')
-rw-r--r-- | Bugzilla/Config/Common.pm | 1 | ||||
-rw-r--r-- | Bugzilla/Config/GroupSecurity.pm | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index 9fe648d01..30b484468 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -154,6 +154,7 @@ sub check_opsys { sub check_group { my $group_name = shift; + return "" unless $group_name; my $group = new Bugzilla::Group({'name' => $group_name}); unless (defined $group) { return "Must be an existing group name"; diff --git a/Bugzilla/Config/GroupSecurity.pm b/Bugzilla/Config/GroupSecurity.pm index 08b202cda..0235a8cb1 100644 --- a/Bugzilla/Config/GroupSecurity.pm +++ b/Bugzilla/Config/GroupSecurity.pm @@ -94,6 +94,7 @@ sub get_param_list { sub _get_all_group_names { my @group_names = map {$_->name} Bugzilla::Group::get_all_groups(); + unshift(@group_names, ''); return \@group_names; } 1; |