From 9f0577c7798fab8f3dd220ed33c15ec38573ae5b Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Mon, 27 Jan 2014 16:22:42 +0900 Subject: [PATCH] Add support for Listbox for getting Relation field field parameter dict. --- .../portal_skins/erp5_core/Base_getFieldParameterDict.xml | 3 ++- product/ERP5/bootstrap/erp5_core/bt/change_log | 3 +++ product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldParameterDict.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldParameterDict.xml index 5976de3eb2..41fb3f1f40 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldParameterDict.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getFieldParameterDict.xml @@ -55,7 +55,8 @@ based on its id\n """\n pieces = context.getId().split(\'_\')\n -if pieces.pop(0) != \'my\':\n +prefix = pieces.pop(0)\n +if prefix != \'my\' and prefix != \'listbox\':\n return {} # this should not happen\n \n if pieces[-1] == \'list\':\n diff --git a/product/ERP5/bootstrap/erp5_core/bt/change_log b/product/ERP5/bootstrap/erp5_core/bt/change_log index d4744e86cd..70ec5b63cc 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/change_log +++ b/product/ERP5/bootstrap/erp5_core/bt/change_log @@ -1,3 +1,6 @@ +2014-01-27 arnaud.fontaine +* Allow getting field parameter dict for a ListBox field. + 2014-01-27 arnaud.fontaine * Likewise a non-ListBox field, call custom edit() if available (eg encapsulated editor). For example, MultiRelationStringField does not return a plain value, but a MultiRelationEditor overriding Base_edit default behavior. diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index a21eb5aa2d..cdc5af610d 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -41150 \ No newline at end of file +41151 \ No newline at end of file -- 2.30.9