From 859c00fe88c5c47f4179874c6a6026371dc7563b Mon Sep 17 00:00:00 2001 From: Sunil Joshi Date: Thu, 22 Aug 2013 14:14:05 +1000 Subject: [PATCH] Bug 252004 - Cannot change capitalisation of Keywords r=simon, a=glob --- Bugzilla/Keyword.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Keyword.pm b/Bugzilla/Keyword.pm index a6e0b6d270..3f3213be45 100644 --- a/Bugzilla/Keyword.pm +++ b/Bugzilla/Keyword.pm @@ -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; } -- 2.47.2