cubicweb/entities/adapters.py
changeset 12355 c703dc95c82e
parent 12160 608481168432
child 12512 661dd0436c01
--- a/cubicweb/entities/adapters.py	Tue Oct 09 16:24:12 2018 +0200
+++ b/cubicweb/entities/adapters.py	Mon Oct 29 10:04:31 2018 +0100
@@ -400,8 +400,8 @@
             path.append(entity.eid)
             try:
                 # check we are not jumping to another tree
-                if (adapter.tree_relation != self.tree_relation or
-                        adapter.child_role != self.child_role):
+                if (adapter.tree_relation != self.tree_relation
+                        or adapter.child_role != self.child_role):
                     break
                 entity = adapter.parent()
                 adapter = entity.cw_adapt_to('ITree')