]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 252004 - Cannot change capitalisation of Keywords
authorSunil Joshi <joshi_sunil@in.com>
Thu, 22 Aug 2013 04:14:05 +0000 (14:14 +1000)
committerSimon Green <sgreen@redhat.com>
Thu, 22 Aug 2013 04:14:05 +0000 (14:14 +1000)
r=simon, a=glob

Bugzilla/Keyword.pm

index a6e0b6d270e37cc224c89eae9707b3557363594b..3f3213be4507704e7b2b46bff395bf4814ccdf70 100644 (file)
@@ -104,7 +104,7 @@ sub _check_name {
 
     # We only want to validate the non-existence of the name if
     # we're creating a new Keyword or actually renaming the keyword.
-    if (!ref($self) || $self->name ne $name) {
+    if (!ref($self) || lc($self->name) ne lc($name)) {
         my $keyword = new Bugzilla::Keyword({ name => $name });
         ThrowUserError("keyword_already_exists", { name => $name }) if $keyword;
     }