diff --git a/app/controllers/default_widget_controller.rb b/app/controllers/default_widget_controller.rb index 332e19b..8b0701c 100644 --- a/app/controllers/default_widget_controller.rb +++ b/app/controllers/default_widget_controller.rb @@ -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