Merged r11754 from trunk (#12684).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11755 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-05-01 13:14:21 +00:00
parent 606762dcad
commit 425a0fe988
1 changed files with 5 additions and 1 deletions

View File

@ -471,7 +471,11 @@ module ApplicationHelper
end
def accesskey(s)
Redmine::AccessKeys.key_for s
@used_accesskeys ||= []
key = Redmine::AccessKeys.key_for(s)
return nil if @used_accesskeys.include?(key)
@used_accesskeys << key
key
end
# Formats text according to system settings.