Commit f161dd07 authored by Sebastien Robin's avatar Sebastien Robin

- make the selection of the tab in the view form working even if there is...

- make the selection of the tab in the view form working even if there is another action using the same form with different parameters.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19654 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ed727cd
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -75,7 +72,8 @@ ...@@ -75,7 +72,8 @@
\n \n
for action_list in actions.values():\n for action_list in actions.values():\n
for action in action_list:\n for action in action_list:\n
if current_url == action[\'url\'].split(\'?\')[0]:\n if action[\'category\'] in (\'object_view\', \'object_button\') and \\\n
current_url == action[\'url\'].split(\'?\')[0]:\n
return action\n return action\n
return None\n return None\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment