diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-24 12:21:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-24 12:21:09 +0000 |
commit | 83717a9b754177c4fff4cff4dead6a7ef544a605 (patch) | |
tree | 626d106462879e558d8b9bbe73c375389515cafd /app | |
parent | 9233a07a2355c646f9f691ebf68b1355cb9063da (diff) | |
download | redmine-83717a9b754177c4fff4cff4dead6a7ef544a605.tar.gz redmine-83717a9b754177c4fff4cff4dead6a7ef544a605.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 0abda0cd0..776efb02d 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) |