diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/global_definitions.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/global_definitions.xml
index f68f6ba21bfcf723f07bfc487f841d78a6e927bd..3b3951075d12cc6d505377ede517ebb2f4d26370 100644
--- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/global_definitions.xml
+++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/global_definitions.xml
@@ -47,8 +47,9 @@
     <tal:block tal:define="\n
       global portal              here/portal_url/getPortalObject;\n
       global portal_path         portal/absolute_url;\n
-            local_parameter_list  local_parameter_list | python: {};\n
-      global actions          python: here.Base_filterDuplicateActions(portal.portal_actions.listFilteredActionsFor(here));\n
+             local_parameter_list  local_parameter_list | python: {};\n
+             action_context    python: portal.restrictedTraverse(request.get(\'object_path\', \'?\'), here);\n
+      global actions          python: here.Base_filterDuplicateActions(portal.portal_actions.listFilteredActionsFor(action_context));\n
       global url              here/absolute_url;\n
       global current_form_id  python: local_parameter_list.get(\'dialog_id\', local_parameter_list.get(\'form_id\', \'view\'));\n
            dummy            python: request.set(\'current_form_id\', current_form_id);\n
diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision
index f520b6ed4c0830e653ac02c1f8eec8c51d171997..1bc902939e155947506b04139b8b9dbfa10f3319 100644
--- a/bt5/erp5_knowledge_pad/bt/revision
+++ b/bt5/erp5_knowledge_pad/bt/revision
@@ -1 +1 @@
-530
\ No newline at end of file
+531
\ No newline at end of file