From 66fe24d8c5908d555751aeb26a760f98f6daa957 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 24 Jul 2015 13:51:19 -0700 Subject: [PATCH] fixes #2452: status: metatag doesnt work in mod queue search --- app/controllers/moderator/post/queues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/moderator/post/queues_controller.rb b/app/controllers/moderator/post/queues_controller.rb index 189ec50da..00b566a5e 100644 --- a/app/controllers/moderator/post/queues_controller.rb +++ b/app/controllers/moderator/post/queues_controller.rb @@ -10,7 +10,7 @@ module Moderator end ::Post.without_timeout do - @posts = ::Post.order("posts.id asc").pending_or_flagged.available_for_moderation(params[:hidden]).search(:tag_match => "#{params[:query]} status:any").paginate(params[:page], :limit => per_page) + @posts = ::Post.order("posts.id asc").pending_or_flagged.available_for_moderation(params[:hidden]).search(:tag_match => params[:query]).paginate(params[:page], :limit => per_page) @posts.each # hack to force rails to eager load end respond_with(@posts)