From a3caf72e2496a3556dd07231f18b26b762dddf8c Mon Sep 17 00:00:00 2001 From: cxt Date: Sat, 9 Mar 2019 14:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 6bcf7c8e..ade104e9 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -843,7 +843,7 @@ class ManagementsController < ApplicationController # @evaluate_recods = EvaluateRecord.where(user_id: UserExtensions.where(school_id: School.where("nameĀ likeĀ '%#{search}%'").pluck(:id)).pluck(:user_id)) end else - @evaluate_recods = EvaluateRecord.all + @evaluate_recods = EvaluateRecord.where("0=0") end @evaluate_recods_count = @evaluate_recods.count