From 503af2577d01a9952c2c72187f854b5e8330149c Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Mon, 25 Feb 2008 10:57:58 +0000 Subject: [PATCH] Clear cache to display new template in action box. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19478 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index abd6e24bb6..2fa8edf9b0 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -3169,7 +3169,9 @@ class Base( CopyContainer, catalog.unindexObject(self, uid=self.getUid()) self.isIndexable = 0 self.isTemplate = 1 - # XXX reset security here + # XXX reset security here + # Clear cache to display new template in action box. + self.portal_caches.clearCacheFactory('erp5_ui_medium') security.declareProtected(Permissions.ModifyPortalContent,'makeTemplateInstance') def makeTemplateInstance(self): -- 2.30.9