From eb9038965a9ee47c0dec56645acd383018f67bdd Mon Sep 17 00:00:00 2001 From: Spen Date: Wed, 8 Jan 2014 11:08:21 +0800 Subject: [PATCH] fix new ui web_link frontend --- .../panel/web_resource/front_end/web_links_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/front_end/web_links_controller.rb b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/front_end/web_links_controller.rb index bda0672e..67e813db 100644 --- a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/front_end/web_links_controller.rb +++ b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/front_end/web_links_controller.rb @@ -23,8 +23,9 @@ class Panel::WebResource::FrontEnd::WebLinksController < OrbitWidgetController date_now = Time.now # @web_link_categorys = get_categories_for_index - if !params[:filter_category_id].blank? - @web_link_categorys = @module_app.categories.enabled.any_in(:_id => params[:filter_category_id]) + + if !params[:category_id].blank? + @web_link_categorys = @module_app.categories.enabled.any_in(:_id => params[:category_id]) else @web_link_categorys = @module_app.categories.enabled end