From 1febd0bdac8dfcb50277bbc032ab2a58e5e2ce1b Mon Sep 17 00:00:00 2001 From: Manson Wang Date: Thu, 21 Nov 2013 16:32:04 +0800 Subject: [PATCH] Fix front_end member plugin urls --- app/controllers/pages_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index df2f0491a..e283865da 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -196,6 +196,7 @@ class PagesController < ApplicationController 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 end raise PageError,'Missing Frontend Page' if @item.nil?