]> 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:21 +0000 (14:14 +1000)
committerSimon Green <sgreen@redhat.com>
Thu, 22 Aug 2013 04:14:21 +0000 (14:14 +1000)
r=simon, a=glob

Bugzilla/Keyword.pm

index aedc6bcfc7cb166f29422197db8653abd33ee4e5..77c9f5f7722eac0c95b8a2b83c823c9c85e1fc06 100644 (file)
@@ -105,7 +105,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;
     }