diff --git a/app/controllers/site_menu_widgets_controller.rb b/app/controllers/site_menu_widgets_controller.rb index 19e8265..e865888 100644 --- a/app/controllers/site_menu_widgets_controller.rb +++ b/app/controllers/site_menu_widgets_controller.rb @@ -6,7 +6,8 @@ class SiteMenuWidgetsController < ApplicationController if page.parent_page == Page.root pages = page.sorted_published_child_pages else - pages = page.parent_page.sorted_published_child_pages + pages = page.sorted_published_child_pages + pages = page.parent_page.sorted_published_child_pages if pages.count == 0 end def create_json(pages) items = []