[Erp5-report] r11907 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 5 14:02:37 CET 2007


Author: jerome
Date: Fri Jan  5 14:02:34 2007
New Revision: 11907

URL: http://svn.erp5.org?rev=11907&view=rev
Log:
hide states without title in Base_getTranslatedWorkflowStateItemList


Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getTranslatedWorkflowStateItemList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getTranslatedWorkflowStateItemList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getTranslatedWorkflowStateItemList.xml?rev=11907&r1=11906&r2=11907&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getTranslatedWorkflowStateItemList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getTranslatedWorkflowStateItemList.xml Fri Jan  5 14:02:34 2007
@@ -74,8 +74,10 @@
 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>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=11907&r1=11906&r2=11907&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Jan  5 14:02:34 2007
@@ -1,1 +1,1 @@
-227
+228




More information about the Erp5-report mailing list