Fix user plugin front_end

This commit is contained in:
Manson Wang 2013-11-20 11:27:20 +08:00
parent 2325086776
commit 3bac21647e
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class PagesController < ApplicationController
model = params[:app_action].classify.constantize rescue nil model = params[:app_action].classify.constantize rescue nil
if !model.nil? if !model.nil?
item = model.find(params[:id]) 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 end
end end