From: Sunil Joshi Date: Thu, 22 Aug 2013 04:14:21 +0000 (+1000) Subject: Bug 252004 - Cannot change capitalisation of Keywords X-Git-Tag: bugzilla-4.5.1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f731a51f1dac37a11e5a31de01a3a95d2b89ad3d;p=thirdparty%2Fbugzilla.git Bug 252004 - Cannot change capitalisation of Keywords r=simon, a=glob --- diff --git a/Bugzilla/Keyword.pm b/Bugzilla/Keyword.pm index aedc6bcfc7..77c9f5f772 100644 --- a/Bugzilla/Keyword.pm +++ b/Bugzilla/Keyword.pm @@ -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; }