From 42cfe88c9822b8e8b6bd0f32d06abba395b87ae5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sat, 13 May 2006 12:24:29 +0000
Subject: [PATCH] Make it possible to unset distributingNode

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7255 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFActivity/ActivityTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/CMFActivity/ActivityTool.py b/product/CMFActivity/ActivityTool.py
index 0221c3a68d..8086836b8f 100644
--- a/product/CMFActivity/ActivityTool.py
+++ b/product/CMFActivity/ActivityTool.py
@@ -416,7 +416,7 @@ class ActivityTool (Folder, UniqueObject):
     security.declarePublic('manage_setDistributingNode')
     def manage_setDistributingNode(self, distributingNode, REQUEST=None):
         """ set the distributing node """   
-        if self._isValidNodeName(distributingNode):
+        if not distributingNode or self._isValidNodeName(distributingNode):
           self.distributingNode = distributingNode
           if REQUEST is not None:
               REQUEST.RESPONSE.redirect(
-- 
2.30.9