Fixed that SCM selection is not saved when all SCM are disabled (#9937).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8568 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-08 18:03:37 +00:00
parent 839daae8d0
commit 381319c4e8
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
<% form_tag({:action => 'edit', :tab => 'repositories'}) do %>
<fieldset class="box settings enabled_scm">
<%= hidden_field_tag 'settings[enabled_scm][]', '' %>
<legend><%= l(:setting_enabled_scm) %></legend>
<table>
<tr>

View File

@ -42,6 +42,8 @@ class SettingsControllerTest < ActionController::TestCase
get :edit
assert_response :success
assert_template 'edit'
assert_tag 'input', :attributes => {:name => 'settings[enabled_scm][]', :value => ''}
end
def test_post_edit_notifications