fix new ui web_link frontend

This commit is contained in:
Spen 2014-01-08 11:08:21 +08:00 committed by saurabhbhatia
parent aaf7f7362c
commit eb9038965a
1 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,9 @@ class Panel::WebResource::FrontEnd::WebLinksController < OrbitWidgetController
date_now = Time.now date_now = Time.now
# @web_link_categorys = get_categories_for_index # @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 else
@web_link_categorys = @module_app.categories.enabled @web_link_categorys = @module_app.categories.enabled
end end