Commit 686a6c79 authored by Jérome Perrin's avatar Jérome Perrin

hide states without title in Base_getTranslatedWorkflowStateItemList



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11907 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f6d9579
......@@ -74,8 +74,10 @@ N_ = context.Base_translateString\n
wf = getToolByName(context, \'portal_workflow\')[wf_id]\n
item_list = []\n
\n
for state in wf.states.objectValues() :\n
item_list.append((N_(state.title), state.id))\n
for state in wf.states.objectValues():\n
if state.title:\n
# we hide states without titles, eg \'deleted\'.\n
item_list.append((N_(state.title), state.id))\n
\n
return item_list\n
</string> </value>
......
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