From 5e76040256c4a86485caf010cc9c9c8329e7aafa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Jun 2009 09:32:23 +0000 Subject: [PATCH] Fixes drop-down list selected value (#3472). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2786 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/settings/_projects.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/settings/_projects.rhtml b/app/views/settings/_projects.rhtml index 510807d99..2f831c8fd 100644 --- a/app/views/settings/_projects.rhtml +++ b/app/views/settings/_projects.rhtml @@ -8,7 +8,7 @@ <%= check_box_tag 'settings[sequential_project_identifiers]', 1, Setting.sequential_project_identifiers? %><%= hidden_field_tag 'settings[sequential_project_identifiers]', 0 %>

-<%= select_tag('settings[new_project_user_role_id]', options_for_select([["--- #{l(:actionview_instancetag_blank_option)} ---", '']] + Role.find_all_givable.collect {|r| [r.name, r.id]}, Setting.new_project_user_role_id)) %>

+<%= select_tag('settings[new_project_user_role_id]', options_for_select([["--- #{l(:actionview_instancetag_blank_option)} ---", '']] + Role.find_all_givable.collect {|r| [r.name, r.id]}, Setting.new_project_user_role_id.to_i)) %>

<%= submit_tag l(:button_save) %>