Fix bug.
This commit is contained in:
parent
9e42030f14
commit
fb0cf35028
|
@ -2,6 +2,7 @@ class SiteMenuWidgetsController < ApplicationController
|
||||||
def create_json(pages)
|
def create_json(pages)
|
||||||
items = []
|
items = []
|
||||||
pages.each do |page|
|
pages.each do |page|
|
||||||
|
next if (!page.menu_enabled_for.include?(I18n.locale.to_s) rescue false
|
||||||
item = {}
|
item = {}
|
||||||
item["obj"] = page
|
item["obj"] = page
|
||||||
if page.child_page.size > 0
|
if page.child_page.size > 0
|
||||||
|
|
Loading…
Reference in New Issue