Commits

Joseph Tate committed 59f2455 Merge

Branch merge

Comments (0)

Files changed (1)

c5t/core/controllers/page.py

           raw_parent_id = kw.get('parent_id', None)
           parent_id = raw_parent_id and ObjectId(raw_parent_id) or None
           kw['parent_id'] = parent_id                  
-        elif parent_page_id == 'top':
+        elif parent_page_id == 'top' or parent_page_id is None:
           kw['parent_id'] = None
         else:
           kw['parent_id'] = parent_page_id