From ea74a7ab0a4a5111e980982ebe9cb6e3bc7bcc8c Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Thu, 19 Mar 2020 17:15:00 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 7f24147..9f67456 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -36,7 +36,7 @@ class ProjectsController < ApplicationController end def group_type_list - @project_group_list = Project.visible.group(:project_type).select('project_type, count(*) AS projects_count') + @project_group_list = Project.visible.group(:project_type).select('project_type, count(project_type) AS projects_count').having("count(project_type) > ?", 0) end def update