diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_deleteBox.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_deleteBox.xml index cdf51db55894367131509d8f86d3490646f59800..9d6dfa6dd026cf83c2c5b7a5f730a8e48031f3ba 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_deleteBox.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_deleteBox.xml @@ -58,7 +58,8 @@ This script is called by drag and drop javascript framework\n when user click on \'Close\' button.\n """\n -\n +splitted_box_url = box_relative_url.split(\'_\')\n +box_relative_url = \'knowledge_pad_module/%s/%s\' %(splitted_box_url[-2], splitted_box_url[-1])\n box = context.restrictedTraverse(box_relative_url)\n box.delete()\n </string> </value> @@ -105,6 +106,8 @@ box.delete()\n <tuple> <string>box_relative_url</string> <string>_getattr_</string> + <string>splitted_box_url</string> + <string>_getitem_</string> <string>context</string> <string>box</string> </tuple> diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision index 5c84cf6fdb5b07f53ee2531098812526ca2011d4..4f09af7132f46046b51bb310c9bf52ad24360558 100644 --- a/bt5/erp5_knowledge_pad/bt/revision +++ b/bt5/erp5_knowledge_pad/bt/revision @@ -1 +1 @@ -491 \ No newline at end of file +492 \ No newline at end of file