Fix default widget get_filter_data
This commit is contained in:
parent
5a43e65fba
commit
3b489789ac
|
@ -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