mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
fixed 个人项目列表条件增加标签名查询,索引失效
This commit is contained in:
@@ -88,7 +88,9 @@ class Projects::ListMyQuery < ApplicationQuery
|
|||||||
else
|
else
|
||||||
if @home_top_ids.present?
|
if @home_top_ids.present?
|
||||||
scope = scope.distinct.order("FIELD(projects.id, #{@home_top_ids.join(",")}) desc, projects.#{sort} #{sort_direction}")
|
scope = scope.distinct.order("FIELD(projects.id, #{@home_top_ids.join(",")}) desc, projects.#{sort} #{sort_direction}")
|
||||||
else
|
elsif params[:topic_name].present?
|
||||||
|
scope = scope.distinct.order("project_topics.id asc, projects.#{sort} #{sort_direction}")
|
||||||
|
else
|
||||||
scope = scope.distinct.order("projects.#{sort} #{sort_direction}")
|
scope = scope.distinct.order("projects.#{sort} #{sort_direction}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user