Skip to content
Snippets Groups Projects
Commit 83717a9b authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Add mail field to admin user search filter (#3882).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2963 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9233a07a
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ class UsersController < ApplicationController
unless params[:name].blank?
name = "%#{params[:name].strip.downcase}%"
c << ["LOWER(login) LIKE ? OR LOWER(firstname) LIKE ? OR LOWER(lastname) LIKE ?", name, name, name]
c << ["LOWER(login) LIKE ? OR LOWER(firstname) LIKE ? OR LOWER(lastname) LIKE ? OR LOWER(mail) LIKE ?", name, name, name, name]
end
@user_count = User.count(:conditions => c.conditions)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment