Fix front_end member plugin urls

This commit is contained in:
Manson Wang 2013-11-21 16:32:04 +08:00
parent 26124e9138
commit 1febd0bdac
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ class PagesController < ApplicationController
end end
end end
@item = Item.root.children.where(:module_app_id => module_app.id).first unless @item
@item = Item.where(:module_app_id => module_app.id).first unless @item @item = Item.where(:module_app_id => module_app.id).first unless @item
end end
raise PageError,'Missing Frontend Page' if @item.nil? raise PageError,'Missing Frontend Page' if @item.nil?