From cbb77e02241053b50b56189398a720c97d3390b7 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Tue, 9 Mar 2010 15:22:33 +0100 Subject: [PATCH] Bugfix while optimizing back references. --- gen/plone25/mixins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/plone25/mixins/__init__.py b/gen/plone25/mixins/__init__.py index 3925ab6..61aa80c 100644 --- a/gen/plone25/mixins/__init__.py +++ b/gen/plone25/mixins/__init__.py @@ -952,7 +952,7 @@ class AbstractMixin: res = None if objs: res = objs[0] - if not ploneObjects: + if res and not ploneObjects: res = res.appy() else: res = objs