Fix 'Missing Frontend Page' when page is a subpage
This commit is contained in:
parent
f702410c9f
commit
26124e9138
|
@ -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
|
||||
|
|
Reference in New Issue