From 173dcae8cba45e9788b0987ec44e81016ef882c8 Mon Sep 17 00:00:00 2001 From: Thomas Desvenain Date: Tue, 10 Sep 2013 18:32:56 +0200 Subject: [PATCH] fix if current content is held_position --- src/collective/contact/core/browser/contactable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collective/contact/core/browser/contactable.py b/src/collective/contact/core/browser/contactable.py index a46c738..165f023 100644 --- a/src/collective/contact/core/browser/contactable.py +++ b/src/collective/contact/core/browser/contactable.py @@ -76,7 +76,7 @@ class Contactable(grok.Adapter): def get_parent_address(self): contactables = self._get_contactables() - if self.context.is_created: + if self.context.is_created and self.context in contactables: # we don't want self.context address if the object is already created contactables.remove(self.context) address = self._get_address(contactables)