diff options
author | terry%mozilla.org <> | 2000-07-14 05:04:14 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 2000-07-14 05:04:14 +0200 |
commit | 65a823060bb336ba4b5d3b544630f66e80337005 (patch) | |
tree | 152d9714b4ceed5768694048fc1cbf69ca6da492 /globals.pl | |
parent | 0aa9bdc0e22a3eb62bee5b19accd546c3464caaa (diff) | |
download | bugzilla-65a823060bb336ba4b5d3b544630f66e80337005.tar.gz bugzilla-65a823060bb336ba4b5d3b544630f66e80337005.tar.xz |
Keywords were already enforced to never differ only in capitalization. So, changed the code so that case no longer matters when typing in the name of a keyword.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl index 91ef44cee..58942ba01 100644 --- a/globals.pl +++ b/globals.pl @@ -104,7 +104,7 @@ sub SyncAnyPendingShadowChanges { $shadowchanges = 0; } } - + my $dosqllog = (-e "data/sqllog") && (-w "data/sqllog"); @@ -472,6 +472,7 @@ sub GenerateVersionTable { SendSQL("SELECT id, name FROM keyworddefs ORDER BY name"); while (MoreSQLData()) { my ($id, $name) = FetchSQLData(); + $name = lc($name); $::keywordsbyname{$name} = $id; push(@::legal_keywords, $name); } @@ -485,6 +486,14 @@ sub GenerateVersionTable { } +sub GetKeywordIdFromName { + my ($name) = (@_); + $name = lc($name); + return $::keywordsbyname{$name}; +} + + + # Returns the modification time of a file. |