diff --git a/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml b/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml index 172731d55f168437f959a564ecccf94fd97b4f72..e5a50f724d24d7714b2f888b1fd88f6e78f9e1c4 100644 --- a/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml +++ b/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml @@ -60,8 +60,7 @@ form = context\n request = context.REQUEST\n report_section_list = []\n portal = context.getPortalObject()\n -selection_name=request.form.get(\'selection_name\', None)\n -\n +selection_name = request.get(\'selection_name\', None)\n \n def getReportSectionListForObject(doc):\n """ Get all possible report section for object. """\n @@ -92,7 +91,7 @@ if selection_name is not None:\n for doc in portal.portal_selections.callSelectionFor(selection_name, context=form):\n report_section_list.extend(getReportSectionListForObject(doc))\n else:\n - # get only current (context) document \n + # get only current (context) document\n report_section_list.extend(getReportSectionListForObject(context))\n \n return report_section_list\n diff --git a/bt5/erp5_ods_style/bt/revision b/bt5/erp5_ods_style/bt/revision index 396054452291e2e07fcd9f33cd76ea228a88aa3a..c5a644422fb8f683632c43a9973c6f9bf3d5a12e 100644 --- a/bt5/erp5_ods_style/bt/revision +++ b/bt5/erp5_ods_style/bt/revision @@ -1 +1 @@ -220 \ No newline at end of file +221 \ No newline at end of file