web/views/ibreadcrumbs.py
changeset 5569 cb14af012a96
parent 5556 9ab2b4c74baf
child 5722 61d6a4caa963
--- a/web/views/ibreadcrumbs.py	Fri May 21 15:02:56 2010 +0200
+++ b/web/views/ibreadcrumbs.py	Fri May 21 15:04:29 2010 +0200
@@ -75,11 +75,12 @@
         to displayed view (may be None). When recursing on a parent entity,
         the `recurs` argument should be set to True.
         """
-        path = [self.entity]
         parent = self.parent_entity()
         if parent is not None:
-            adapter = ibreadcrumb_adapter(self.entity)
+            adapter = ibreadcrumb_adapter(parent)
             path = adapter.breadcrumbs(view, True) + [self.entity]
+        else:
+            path = [self.entity]
         if not recurs:
             if view is None:
                 if 'vtitle' in self._cw.form: