Commit 859c00fe authored by Sunil Joshi's avatar Sunil Joshi Committed by Simon Green

Bug 252004 - Cannot change capitalisation of Keywords

r=simon, a=glob
parent 6efd6ab1
......@@ -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;
}
......
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