fixes in cms page generation
This commit is contained in:
parent
cb909d518c
commit
ceb2ab35e6
@ -86,8 +86,8 @@ def get_header(page_name):
|
|||||||
# build child items
|
# build child items
|
||||||
for t in top_bar_items:
|
for t in top_bar_items:
|
||||||
if t.get('parent_label'):
|
if t.get('parent_label'):
|
||||||
pi = get_item(t['parent_label'])
|
pi = get_item(top_bar_items, t['parent_label'])
|
||||||
if not pi['child_items']:
|
if 'child_items' not in pi:
|
||||||
pi['child_items'] = []
|
pi['child_items'] = []
|
||||||
pi['child_items'].append(t)
|
pi['child_items'].append(t)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user