[Erp5-report] r23927 - in /erp5/trunk/bt5/erp5_forge: WorkflowTemplateItem/portal_workflow/...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 1 11:40:57 CEST 2008


Author: yusei
Date: Wed Oct  1 11:40:39 2008
New Revision: 23927

URL: http://svn.erp5.org?rev=23927&view=rev
Log:
2008-10-01 yusei
* Fixed a bug in Bug_sendNotification in bug_workflow. Workflow history's action may be None.

Modified:
    erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_workflow/scripts/Bug_sendNotification.xml
    erp5/trunk/bt5/erp5_forge/bt/change_log
    erp5/trunk/bt5/erp5_forge/bt/revision

Modified: erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_workflow/scripts/Bug_sendNotification.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_workflow/scripts/Bug_sendNotification.xml?rev=23927&r1=23926&r2=23927&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_workflow/scripts/Bug_sendNotification.xml (original)
+++ erp5/trunk/bt5/erp5_forge/WorkflowTemplateItem/portal_workflow/bug_workflow/scripts/Bug_sendNotification.xml Wed Oct  1 11:40:39 2008
@@ -59,7 +59,7 @@
 history = bug.portal_workflow.getInfoFor(bug, \'history\',\n
                                          wf_id=\'bug_workflow\')\n
 for history_item in history[::-1]:\n
-  if history_item[\'action\'].endswith(\'action\'):\n
+  if same_type(history_item[\'action\'], \'\') and history_item[\'action\'].endswith(\'action\'):\n
     send_event = history_item[\'send_event\']\n
     is_re_assign_action = bool(history_item[\'action\'] == \'re_assign_action\')\n
     break\n
@@ -138,6 +138,7 @@
                             <string>history</string>
                             <string>_getiter_</string>
                             <string>history_item</string>
+                            <string>same_type</string>
                             <string>send_event</string>
                             <string>bool</string>
                             <string>is_re_assign_action</string>

Modified: erp5/trunk/bt5/erp5_forge/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/bt/change_log?rev=23927&r1=23926&r2=23927&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_forge/bt/change_log Wed Oct  1 11:40:39 2008
@@ -1,3 +1,6 @@
+2008-10-01 yusei
+* Fixed a bug in Bug_sendNotification in bug_workflow. Workflow history's action may be None.
+
 2008-09-04 yusei
 * Update English messages.
 

Modified: erp5/trunk/bt5/erp5_forge/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/bt/revision?rev=23927&r1=23926&r2=23927&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/bt/revision (original)
+++ erp5/trunk/bt5/erp5_forge/bt/revision Wed Oct  1 11:40:39 2008
@@ -1,1 +1,1 @@
-379
+381




More information about the Erp5-report mailing list