OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9233a07
)
Add mail field to admin user search filter (#3882).
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sat, 24 Oct 2009 12:21:09 +0000
(12:21 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sat, 24 Oct 2009 12:21:09 +0000
(12:21 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2963
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/controllers/users_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/users_controller.rb
b/app/controllers/users_controller.rb
index
0abda0c
..
776efb0
100644
(file)
--- 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)