diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebSection_deleteObjectList.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebSection_deleteObjectList.xml index 7ed1ad5b5b45f2054b20af2a9ffb20c0ecb42a8e..2ce1a75aba159764b659f5a3340c8aec30e267f8 100644 --- a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebSection_deleteObjectList.xml +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/WebSection_deleteObjectList.xml @@ -59,12 +59,12 @@ uid_list = context.REQUEST.get("uids")\n if uid_list is not None:\n for catalog_object in portal.portal_catalog(portal_type=portal_type_list, \n uid=uid_list):\n - if catalog_object.getValidationState() == "deleted":\n - portal.web_page_module.deleteContent(catalog_object.getId())\n - continue\n object = context.restrictedTraverse(catalog_object.getPath())\n - object.setPublicationSection("trash")\n - object.delete()\n + if object.getValidationState() == "deleted":\n + portal.web_page_module.deleteContent(object.getId())\n + continue\n + else:\n + object.delete()\n \n return context.ERP5Site_redirect(context.REQUEST.get("HTTP_REFERER"))\n </string> </value> diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision index d2c5ed2124821b21d11dcc57f6a116ed29593583..1bda760653e918fc4fca9a02b046236b0aa02843 100644 --- a/bt5/erp5_web_ung_theme/bt/revision +++ b/bt5/erp5_web_ung_theme/bt/revision @@ -1 +1 @@ -116 \ No newline at end of file +117 \ No newline at end of file