From ceb2ab35e641636e397f55996efcc03a93b666e3 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 21 May 2012 15:56:50 +0200 Subject: [PATCH] fixes in cms page generation --- erpnext/website/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/website/utils.py b/erpnext/website/utils.py index dbe1733c538..57e940a755f 100644 --- a/erpnext/website/utils.py +++ b/erpnext/website/utils.py @@ -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)