summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Joshi <joshi_sunil@in.com>2013-08-22 06:14:21 +0200
committerSimon Green <sgreen@redhat.com>2013-08-22 06:14:21 +0200
commitf731a51f1dac37a11e5a31de01a3a95d2b89ad3d (patch)
tree44eb7cee72d8e9b210bc6f75f25f7871787836c6
parent592bd080be8d0ed42b7a54d038b8fd705edb758f (diff)
downloadbugzilla-f731a51f1dac37a11e5a31de01a3a95d2b89ad3d.tar.gz
bugzilla-f731a51f1dac37a11e5a31de01a3a95d2b89ad3d.tar.xz
Bug 252004 - Cannot change capitalisation of Keywords
r=simon, a=glob
-rw-r--r--Bugzilla/Keyword.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Keyword.pm b/Bugzilla/Keyword.pm
index aedc6bcfc..77c9f5f77 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;
}