From fb44e10e82e6ea8bc1f8617126a1835757811fb6 Mon Sep 17 00:00:00 2001 From: bohung Date: Sun, 16 Oct 2022 19:04:40 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/asks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/asks_controller.rb b/app/controllers/admin/asks_controller.rb index 317114d..c8274c9 100644 --- a/app/controllers/admin/asks_controller.rb +++ b/app/controllers/admin/asks_controller.rb @@ -196,7 +196,7 @@ class Admin::AsksController < OrbitAdminController .any_in(:identity => filter2("identity")) .any_in(:situation => filter2("situation")) end - @askquestions = @askquestions.where(:category_id=>category_id) + @askquestions = @askquestions.where(:category_id=>category_id) if category_id # 分頁 @askquestions = search_data(@askquestions,[:title]).page(params[:page]).per(10) if request.xhr?