Pevents duplicate accesskeys (#12684).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11754 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e1d47931f1
commit
9d190c922a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue