Commit f731a51f authored by Sunil Joshi's avatar Sunil Joshi Committed by Simon Green

Bug 252004 - Cannot change capitalisation of Keywords

r=simon, a=glob
parent 592bd080
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment