Commit a317e0a9 by liyijie

fix: params[:sub_q] error

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