diff --git a/app/views/users/_list.html.erb b/app/views/users/_list.html.erb index 04b4ddfb5..b5d85c6d5 100644 --- a/app/views/users/_list.html.erb +++ b/app/views/users/_list.html.erb @@ -31,7 +31,7 @@ <% end %> - hascontextmenu"> + <%= user.css_classes %>"> <%= check_box_tag("ids[]", user.id, false, id: nil) %> <% @query.inline_columns.each do |column| %> <% if column.name == :login %> diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index c519dd5df..6b5e3aebf 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -33,14 +33,14 @@ class UsersControllerTest < Redmine::ControllerTest active = User.active.first locked = User.where(status: User::STATUS_LOCKED).first assert_select 'table.users' - assert_select "tr#user-#{active.id}" + assert_select "tr.user.active#user-#{active.id}" assert_select "tr#user-#{locked.id}", 0 end def test_index_with_status_filter get :index, params: { set_filter: 1, f: ['status'], op: {status: '='}, v: {status: [3]} } assert_response :success - assert_select "tr.user", User.where(status: 3).count + assert_select "tr.user.locked", User.where(status: 3).count end def test_index_with_firstname_filter