Fix default widget get_filter_data
This commit is contained in:
parent
05ad8c27dd
commit
dea2652581
|
@ -104,7 +104,7 @@ class DefaultWidgetController< OrbitWidgetController
|
|||
end
|
||||
|
||||
def get_filter_data
|
||||
model = @default_widget["query"].classify.constantize
|
||||
model = @default_widget["query"].split('.')[0].classify.constantize
|
||||
if params[:filter_category_id].is_a? Array
|
||||
data = model.where(:category_id.in => params[:filter_category_id])
|
||||
elsif params[:filter_category_id].is_a? String
|
||||
|
|
Loading…
Reference in New Issue