post replacements: fix search[creator_name]=... param.

This commit is contained in:
evazion
2017-06-22 16:47:52 -05:00
parent 41b9a8a044
commit 13d49467a2

View File

@@ -77,7 +77,7 @@ class PostReplacement < ApplicationRecord
end
if params[:creator_name].present?
q = q.where(creator_name: User.name_to_id(params[:creator_name]))
q = q.where(creator_id: User.name_to_id(params[:creator_name]))
end
if params[:id].present?