diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 08:24:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 08:24:03 +0000 |
commit | e4dcb888c559c57822c6cd883b13f1a1157c75de (patch) | |
tree | 29d5d92991d0a93c5a5955e393886abe0496fcc5 | |
parent | 38ab1da933e775d8bb586b40b0678d322fe09cb3 (diff) | |
download | redmine-e4dcb888c559c57822c6cd883b13f1a1157c75de.tar.gz redmine-e4dcb888c559c57822c6cd883b13f1a1157c75de.zip |
Merged r14284 (#19485).
git-svn-id: http://svn.redmine.org/redmine/branches/3.0-stable@14285 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 8811a65fd..9522cb3dd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -130,7 +130,7 @@ class User < Principal scope :having_mail, lambda {|arg| addresses = Array.wrap(arg).map {|a| a.to_s.downcase} if addresses.any? - joins(:email_addresses).where("LOWER(address) IN (?)", addresses).uniq + joins(:email_addresses).where("LOWER(#{EmailAddress.table_name}.address) IN (?)", addresses).uniq else none end |