Fixed that group filter is escaped on users index.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9679 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7c97832002
commit
dc7569ecae
|
@ -11,7 +11,7 @@
|
|||
|
||||
<% if @groups.present? %>
|
||||
<label for='group_id'><%= l(:label_group) %>:</label>
|
||||
<%= select_tag 'group_id', '<option></option>' + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %>
|
||||
<%= select_tag 'group_id', content_tag('option') + options_from_collection_for_select(@groups, :id, :name, params[:group_id].to_i), :onchange => "this.form.submit(); return false;" %>
|
||||
<% end %>
|
||||
|
||||
<label for='name'><%= l(:label_user) %>:</label>
|
||||
|
|
|
@ -74,6 +74,9 @@ class UsersControllerTest < ActionController::TestCase
|
|||
users = assigns(:users)
|
||||
assert users.any?
|
||||
assert_equal([], (users - Group.find(10).users))
|
||||
assert_select 'select[name=group_id]' do
|
||||
assert_select 'option[value=10][selected=selected]'
|
||||
end
|
||||
end
|
||||
|
||||
def test_show
|
||||
|
|
Loading…
Reference in New Issue