From 46a384f9be3710c0671bdbfeeb5e879640c241bb Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 19 Apr 2004 09:05:13 +0000 Subject: [PATCH] Call reindexObject in setCategoryList. Use _setCategoryList of CategoryTool in _setCategoryList. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@690 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 091e34f87d..baaff3b09f 100755 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -891,10 +891,11 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana security.declareProtected( Permissions.ModifyPortalContent, 'setCategoryList' ) def setCategoryList(self, path_list): self._setCategoryList(path_list) + self.reindexObject() security.declareProtected( Permissions.ModifyPortalContent, '_setCategoryList' ) def _setCategoryList(self, path_list): - self.categories = tuple(path_list) + self.portal_categories._setCategoryList(self, path_list) security.declareProtected( Permissions.View, 'getBaseCategoryList' ) def getBaseCategoryList(self): -- 2.30.9