From 9fe5def98a0830bfea2efc5764b82f4e3389ba68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Thu, 18 Feb 2010 10:33:59 +0000 Subject: [PATCH] reindex object when updating local roles git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32751 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index a5c6aa88e8..c21b5d7b8f 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -4715,6 +4715,7 @@ class LocalRolesTemplateItem(BaseTemplateItem): obj = p.unrestrictedTraverse(path) local_roles_dict = self._objects[roles_path][0] setattr(obj, '__ac_local_roles__', local_roles_dict) + obj.reindexObject() def uninstall(self, context, **kw): p = context.getPortalObject() @@ -4722,6 +4723,7 @@ class LocalRolesTemplateItem(BaseTemplateItem): path = roles_path.split('/')[1:] obj = p.unrestrictedTraverse(path) setattr(obj, '__ac_local_roles__', {}) + obj.reindexObject() class BusinessTemplate(XMLObject): """ -- 2.30.9