Commit 335aee88 by liyijie

fix: param[:q] && params[:sub_q]

parent a317e0a9
......@@ -313,7 +313,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
# ransack q, 这里主要是为了统计
def query_association_chain
if self.class.instance_variable_get(:@ransack_off) || params[:q].blank? || params[:sub_q].blank?
if self.class.instance_variable_get(:@ransack_off) || (params[:q].blank? && params[:sub_q].blank?)
database_policy_association_chain
else
ransack_association(database_policy_association_chain, params[:q])
......
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