diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml index 13acd93cc0578514c29ce3580990a4758b004867..568ef600e9c07ca426b560631fb334029499c836 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml @@ -82,19 +82,15 @@ for item in listbox:\n bt_dict[bt_id][object_id] = item[\'choice\']\n \n bt_title_list = []\n -for bt_id in bt_dict.keys():\n - object_list = bt_dict[bt_id]\n +for bt_id in bt_id_list:\n + if bt_id not in bt_dict.keys():\n + object_list=[]\n + else:\n + object_list = bt_dict[bt_id]\n bt = context.portal_templates[bt_id]\n bt.install(force=0, object_to_update=object_list)\n bt_title_list.append(bt.getTitle())\n \n -for id in bt_id_list:\n - if id not in bt_dict.keys():\n - bt = context.portal_templates[id]\n - bt.install(force=0, object_to_update=[])\n - bt_title_list.append(bt.getTitle())\n -\n -\n REQUEST = container.REQUEST\n RESPONSE = REQUEST.RESPONSE\n \n @@ -164,7 +160,6 @@ return RESPONSE.redirect("%s?portal_status_message=Business+Template+%s+installe <string>bt_title_list</string> <string>object_list</string> <string>bt</string> - <string>id</string> <string>container</string> <string>REQUEST</string> <string>RESPONSE</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index dce6588ca1420a69eea5699f2ec5d666daf16a6a..c24b6ae77df02a87472b208f251fad88382a2e55 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -36 \ No newline at end of file +38 \ No newline at end of file