From 3bac21647ecdb8f9c04bf3af376805ed487798a4 Mon Sep 17 00:00:00 2001 From: Manson Wang Date: Wed, 20 Nov 2013 11:27:20 +0800 Subject: [PATCH] Fix user plugin front_end --- app/controllers/pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index fec439ac2..cd02d9676 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -191,7 +191,7 @@ class PagesController < ApplicationController model = params[:app_action].classify.constantize rescue nil if !model.nil? item = model.find(params[:id]) - @item = Item.where(:category => [item.category_id.to_s]).first + @item = Item.where(:category => [item.category_id.to_s]).first if !module_app.has_category.blank? end end end