Commit de5cae65 by liyijie

fix: 修复搜索条件的问题

parent ef8301ab
......@@ -228,7 +228,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
end
def after_of_association_chain
_association_chain = after_association_chain(query_association_chain)
_association_chain = after_association_chain(end_of_association_chain)
if _association_chain.respond_to?(:order)
_association_chain.order(id: :desc)
else
......@@ -238,7 +238,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
# 执行统计和sub_q
def ransack_association_chain
association = end_of_association_chain
association = after_of_association_chain
if params[:group_keys].present?
statistics_association = association.unscope(:order).distinct
if defined?(Com::CounterStorage) && Array(params[:group_keys]).count > 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment