Commit 9c87fc73 authored by Jérome Perrin's avatar Jérome Perrin

never show deleted state in Base_getTranslatedWorkflowStateItemList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b715bb2b
...@@ -75,8 +75,8 @@ wf = getToolByName(context, \'portal_workflow\')[wf_id]\n ...@@ -75,8 +75,8 @@ wf = getToolByName(context, \'portal_workflow\')[wf_id]\n
item_list = []\n item_list = []\n
\n \n
for state in wf.states.objectValues():\n for state in wf.states.objectValues():\n
if state.title:\n if state.title and state.id != \'deleted\':\n
# we hide states without titles, eg \'deleted\'.\n # we hide states without titles\n
item_list.append((N_(state.title), state.id))\n item_list.append((N_(state.title), state.id))\n
\n \n
return item_list\n return item_list\n
......
470 473
\ No newline at end of file \ 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