Update sub menu list

This commit is contained in:
manson 2014-07-25 12:20:19 +08:00
parent f9cf40c635
commit 5b7dadaa72
1 changed files with 2 additions and 1 deletions

View File

@ -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 = []