diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index cd02d9676..df2f0491a 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -196,7 +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? end