forked from jasder/forgeplus
FIX 优化项目列表数据查询
This commit is contained in:
parent
ee7d2fca2d
commit
ea74a7ab0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue