From 0be44a1517ba66a2d210d40ba8384b2f3a6231af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 9 Jun 2008 13:21:16 +0000 Subject: [PATCH] Amount.getVariationCategoryItemList should have display_id defaulting to logical_path and beeing actually propagated to Renderer, like it's done in Variated.getVariationCategoryItemList git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21426 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Amount.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/Document/Amount.py b/product/ERP5/Document/Amount.py index 0f763b9cd1..2793616169 100644 --- a/product/ERP5/Document/Amount.py +++ b/product/ERP5/Document/Amount.py @@ -102,7 +102,7 @@ class Amount(Base, Variated): security.declareProtected(Permissions.AccessContentsInformation, 'getVariationCategoryItemList') def getVariationCategoryItemList(self, base_category_list=(), base=1, - display_id='title', + display_id='logical_path', current_category=None,**kw): """ Returns the list of possible variations @@ -125,7 +125,7 @@ class Amount(Base, Variated): is_right_display=0, display_none_category=0, base=base, current_category=current_category, - display_id='logical_path',**kw).\ + display_id=display_id, **kw).\ render(category_list)) object_list = [x for x in resource_list \ if x.getPortalType() != 'Category'] @@ -134,7 +134,7 @@ class Amount(Base, Variated): base_category=base_category, display_none_category=0, base=base, current_category=current_category, - display_id=display_id,**kw).\ + display_id='title', **kw).\ render(object_list)) return variation_category_item_list -- 2.30.9