diff options
Diffstat (limited to 'app/models/principal.rb')
-rw-r--r-- | app/models/principal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/principal.rb b/app/models/principal.rb index 47fa62ba5..525693129 100644 --- a/app/models/principal.rb +++ b/app/models/principal.rb @@ -80,7 +80,7 @@ class Principal < ActiveRecord::Base if tokens.present? sql << ' OR (' sql << tokens.map.with_index do |token, index| - params.merge!(:"token_#{index}" => token) + params[:"token_#{index}"] = token "(LOWER(#{table_name}.firstname) LIKE LOWER(:token_#{index}) OR LOWER(#{table_name}.lastname) LIKE LOWER(:token_#{index}))" end.join(' AND ') sql << ')' |