Commit d6cf174e authored by Vincent Pelletier's avatar Vincent Pelletier

Don't fail if the given action is an empty string (ie, split returns no element).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9038 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7384b37d
......@@ -73,6 +73,8 @@ N_ = portal.Base_translateString\n
preserved_parameters={}\n
\n
Base_doAction = select_action.split()\n
if len(Base_doAction) == 0:\n
return\n
doAction0 = Base_doAction[0]\n
request = context.REQUEST\n
\n
......@@ -181,6 +183,7 @@ return context.ERP5XhtmlStyle_redirect(redirect_url, keep_items=preserved_parame
<string>N_</string>
<string>preserved_parameters</string>
<string>Base_doAction</string>
<string>len</string>
<string>_getitem_</string>
<string>doAction0</string>
<string>request</string>
......
72
\ No newline at end of file
74
\ No newline at end of file
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