Sort the issue list by author/assignee according to user display format (#9669).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7938 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
+2
-2
@@ -98,11 +98,11 @@ class ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def with_settings(options, &block)
|
||||
saved_settings = options.keys.inject({}) {|h, k| h[k] = Setting[k].dup; h}
|
||||
saved_settings = options.keys.inject({}) {|h, k| h[k] = Setting[k].is_a?(Symbol) ? Setting[k] : Setting[k].dup; h}
|
||||
options.each {|k, v| Setting[k] = v}
|
||||
yield
|
||||
ensure
|
||||
saved_settings.each {|k, v| Setting[k] = v}
|
||||
saved_settings.each {|k, v| Setting[k] = v} if saved_settings
|
||||
end
|
||||
|
||||
def change_user_password(login, new_password)
|
||||
|
||||
Reference in New Issue
Block a user