From b7db313d327a9f37e0b3679ee5abd4e0b1f55e2e Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Wed, 8 Nov 2006 15:25:11 +0000 Subject: [PATCH] Get the list of group titles to generate the cache key for Form_getGroupTitleAndId. This fixes the case when creating a form, displaying it and then creating groups with fields would not render the fields (because the groups are not known in the cache). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11205 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_xhtml_style/Form_getGroupTitleAndId.xml | 2 +- product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Form_getGroupTitleAndId.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Form_getGroupTitleAndId.xml index 679c387132..b8a619f434 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Form_getGroupTitleAndId.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Form_getGroupTitleAndId.xml @@ -121,7 +121,7 @@ def getFormGroupTitleAndId():\n return res\n \n getFormGroupTitleAndId = CachingMethod(getFormGroupTitleAndId,\n - ("ERP5Site_getFormGroupTitleAndId", form.id),\n + ("ERP5Site_getFormGroupTitleAndId", form.id, form.get_groups(include_empty=0)),\n cache_duration=None)\n return getFormGroupTitleAndId()\n </string> </value> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index eff3954851..65de5029b4 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -290 \ No newline at end of file +294 \ No newline at end of file -- 2.30.9