]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 252005: Allow changing the captialization of a group name
authorSteve P <Steve_P@blueyonder.co.uk>
Tue, 22 Jun 2010 02:22:27 +0000 (19:22 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 22 Jun 2010 02:22:27 +0000 (19:22 -0700)
r=mkanat, a=mkanat

Bugzilla/Group.pm

index 65df4ee816bbaee759a2003c257cf360482b4885..f24eef735948c0e7eff6089e833be11ff76084cf 100644 (file)
@@ -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;
     }