summaryrefslogtreecommitdiffstats
path: root/app/helpers/users_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-04 22:24:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-04 22:24:33 +0000
commitf52410be1922ba62c9a9b0313b5b86e13d8df704 (patch)
tree072c6a4ca3f0e0f206fe756fe47d65798dcd7f80 /app/helpers/users_helper.rb
parentb9900661f4ade37dfc204a39f89c808c7755f771 (diff)
downloadredmine-f52410be1922ba62c9a9b0313b5b86e13d8df704.tar.gz
redmine-f52410be1922ba62c9a9b0313b5b86e13d8df704.zip
Adds named scopes for users index.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8081 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r--app/helpers/users_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index 51ff99a9a..6df6b8d3f 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -19,9 +19,9 @@ module UsersHelper
def users_status_options_for_select(selected)
user_count_by_status = User.count(:group => 'status').to_hash
options_for_select([[l(:label_all), ''],
- ["#{l(:status_active)} (#{user_count_by_status[1].to_i})", 1],
- ["#{l(:status_registered)} (#{user_count_by_status[2].to_i})", 2],
- ["#{l(:status_locked)} (#{user_count_by_status[3].to_i})", 3]], selected)
+ ["#{l(:status_active)} (#{user_count_by_status[1].to_i})", '1'],
+ ["#{l(:status_registered)} (#{user_count_by_status[2].to_i})", '2'],
+ ["#{l(:status_locked)} (#{user_count_by_status[3].to_i})", '3']], selected.to_s)
end
# Options for the new membership projects combo-box