This commit is contained in:
albert
2013-03-29 16:45:59 -04:00
parent d7c6702be0
commit 85a5fcc658
16 changed files with 28 additions and 28 deletions

View File

@@ -35,7 +35,7 @@ class UserFeedback < ActiveRecord::Base
end
if params[:user_name].present?
q = q.where("user_id = (select _.id from users _ where lower(_.name) = ?)", params[:user_name].downcase)
q = q.where("user_id = (select _.id from users _ where lower(_.name) = ?)", params[:user_name].mb_chars.downcase)
end
if params[:creator_id].present?
@@ -43,7 +43,7 @@ class UserFeedback < ActiveRecord::Base
end
if params[:creator_name].present?
q = q.where("creator_id = (select _.id from users _ where lower(_.name) = ?)", params[:creator_name].downcase)
q = q.where("creator_id = (select _.id from users _ where lower(_.name) = ?)", params[:creator_name].mb_chars.downcase)
end
q