]> source.dussan.org Git - redmine.git/commitdiff
Fixes drop-down list selected value (#3472).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Jun 2009 09:32:23 +0000 (09:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 13 Jun 2009 09:32:23 +0000 (09:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2786 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/settings/_projects.rhtml

index 510807d999da6ee7dc6d888aaddf887206cd3811..2f831c8fdce040ccd325739a86480cea2a99c931 100644 (file)
@@ -8,7 +8,7 @@
 <%= check_box_tag 'settings[sequential_project_identifiers]', 1, Setting.sequential_project_identifiers? %><%= hidden_field_tag 'settings[sequential_project_identifiers]', 0 %></p>
 
 <p><label><%= l(:setting_new_project_user_role_id) %></label>
-<%= 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)) %></p>
+<%= 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)) %></p>
 </div>
 
 <%= submit_tag l(:button_save) %>