summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Group.pm
diff options
context:
space:
mode:
authorSteve P <Steve_P@blueyonder.co.uk>2010-06-22 04:21:42 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-22 04:21:42 +0200
commit90a16d9ea359d7b9888577ec711430387f3b3de5 (patch)
tree1c6521742c8d9bfc5eb50ef503fb025cbbd7f8db /Bugzilla/Group.pm
parent4acb2424e62cbd64bc92a5dec2cbe1e2b7096157 (diff)
downloadbugzilla-90a16d9ea359d7b9888577ec711430387f3b3de5.tar.gz
bugzilla-90a16d9ea359d7b9888577ec711430387f3b3de5.tar.xz
Bug 252005: Allow changing the captialization of a group name
r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/Group.pm')
-rw-r--r--Bugzilla/Group.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm
index 65df4ee81..f24eef735 100644
--- a/Bugzilla/Group.pm
+++ b/Bugzilla/Group.pm
@@ -437,7 +437,7 @@ sub _check_name {
$name = trim($name);
$name || ThrowUserError("empty_group_name");
# If we're creating a Group or changing the name...
- if (!ref($invocant) || $invocant->name ne $name) {
+ if (!ref($invocant) || lc($invocant->name) ne lc($name)) {
my $exists = new Bugzilla::Group({name => $name });
ThrowUserError("group_exists", { name => $name }) if $exists;
}