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
|
||||
for t in top_bar_items:
|
||||
if t.get('parent_label'):
|
||||
pi = get_item(t['parent_label'])
|
||||
if not pi['child_items']:
|
||||
pi = get_item(top_bar_items, t['parent_label'])
|
||||
if 'child_items' not in pi:
|
||||
pi['child_items'] = []
|
||||
pi['child_items'].append(t)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user