From 815ef0404a7eace10ae3903a772774b79518d0d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Fri, 3 Feb 2006 09:06:15 +0000
Subject: [PATCH] modify Base_getWorkflowHistorySectionList and
 Base_viewWorkflowHistory in order to see workflow title instead of
 workflow_id in workflow history view

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5547 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_core/Base_getWorkflowHistorySectionList.xml         | 5 ++++-
 .../erp5_core/Base_viewWorkflowHistory/listbox.xml           | 2 +-
 product/ERP5/bootstrap/erp5_core/bt/change_log               | 3 +++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistorySectionList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistorySectionList.xml
index 147d0b7cb2..36533af379 100755
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistorySectionList.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistorySectionList.xml
@@ -71,13 +71,14 @@ result = []\n
 \n
 history_dict = context.Base_getWorkflowHistory()\n
 for workflow_id, workflow_history in history_dict.items():\n
+  workflow_title = context.portal_workflow[workflow_id].title or workflow_id\n
   result.append(\n
     ReportSection(\n
       path=context.getPhysicalPath(),\n
       title=workflow_id,\n
       level=1,\n
       form_id=\'Base_viewWorkflowHistory\',\n
-      selection_params={\'workflow_id\': workflow_id},\n
+      selection_params={\'workflow_id\': workflow_id, \'workflow_title\' : workflow_title},\n
       listbox_display_mode=\'FlatListMode\')\n
   )\n
 \n
@@ -137,6 +138,8 @@ return result\n
                             <string>_getiter_</string>
                             <string>workflow_id</string>
                             <string>workflow_history</string>
+                            <string>_getitem_</string>
+                            <string>workflow_title</string>
                           </tuple>
                         </value>
                     </item>
diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml
index 97d0b504b3..364a83a18e 100755
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml
@@ -601,7 +601,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: here.portal_selections.getSelectionParams(\'base_workflow_history_selection\')[\'workflow_id\']</string> </value>
+            <value> <string>python: here.portal_selections.getSelectionParams(\'base_workflow_history_selection\')[\'workflow_title\']</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/change_log b/product/ERP5/bootstrap/erp5_core/bt/change_log
index de573c3e22..c947a55d7a 100755
--- a/product/ERP5/bootstrap/erp5_core/bt/change_log
+++ b/product/ERP5/bootstrap/erp5_core/bt/change_log
@@ -1,3 +1,6 @@
+2006-02-02 aurel
+* modify Base_getWorkflowHistorySectionList and Base_viewWorkflowHistory
+
 2006-02-01 kevin
 * Delete all jump menus defined on Organisation module: they are just shortcuts to other modules.
 * Same on Person module.
-- 
2.30.9