From: Jean-Philippe Lang Date: Sat, 24 Oct 2009 12:21:09 +0000 (+0000) Subject: Add mail field to admin user search filter (#3882). X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=83717a9b754177c4fff4cff4dead6a7ef544a605;p=redminele%2Fredmine.git 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 --- diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 0abda0cd..776efb02 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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)