commit | ceb2ab35e641636e397f55996efcc03a93b666e3 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Mon May 21 15:56:50 2012 +0200 |
committer | Rushabh Mehta <rmehta@gmail.com> | Mon May 21 15:56:50 2012 +0200 |
tree | 54bb46194a36e7795729e9c0a8300158172844d7 | |
parent | cb909d518cd112c63746b4dcb5d2263f23cc59b6 [diff] |
fixes in cms page generation
diff --git a/erpnext/website/utils.py b/erpnext/website/utils.py index dbe1733..57e940a 100644 --- a/erpnext/website/utils.py +++ b/erpnext/website/utils.py
@@ -86,8 +86,8 @@ # 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)