Fix error when searching for appeals by is_resolved
This commit is contained in:
@@ -8,7 +8,7 @@ class PostAppealsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@query = PostAppeal.order("id desc").includes(:post).search(params[:search])
|
@query = PostAppeal.order("post_appeals.id desc").includes(:post).search(params[:search])
|
||||||
@post_appeals = @query.paginate(params[:page], :limit => params[:limit])
|
@post_appeals = @query.paginate(params[:page], :limit => params[:limit])
|
||||||
respond_with(@post_appeals) do |format|
|
respond_with(@post_appeals) do |format|
|
||||||
format.xml do
|
format.xml do
|
||||||
|
|||||||
Reference in New Issue
Block a user