Typo that makes the checkbox not visible (#5605).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11302 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-02 14:46:26 +00:00
parent 9536d04c1e
commit 0380292eca
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<p><%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %></p>
<% end %>
<% if @project.safe_attribute? 'priority_id' %>
<% if @project.safe_attribute? 'inherit_members' %>
<p><%= f.check_box :inherit_members %></p>
<% end %>

View File

@ -397,6 +397,8 @@ class ProjectsControllerTest < ActionController::TestCase
get :settings, :id => 'private-child'
assert_response :success
assert_template 'settings'
assert_select 'input[type=checkbox][name=?]', 'project[inherit_members]'
end
def test_settings_should_be_denied_for_member_on_closed_project