Commit 1c91b928 authored by Rafael Monnerat's avatar Rafael Monnerat

Source is the Assignee not Destination.

Thanks to Jerome patch.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23960 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c64f95b6
...@@ -65,17 +65,17 @@ assigned_to_dict={}\n ...@@ -65,17 +65,17 @@ assigned_to_dict={}\n
not_assigned_bug_list=[]\n not_assigned_bug_list=[]\n
\n \n
for bug in bug_module.searchFolder(portal_type=\'Bug\',\n for bug in bug_module.searchFolder(portal_type=\'Bug\',\n
simulation_state=[\'confirmed\', \'set_ready\' ],\n simulation_state=(\'confirmed\', \'set_ready\',),\n
sort_on=((\'id\', \'asc\', \'int\'),)):\n sort_on=((\'id\', \'asc\', \'int\'),)):\n
bug = bug.getObject()\n bug = bug.getObject()\n
if bug.getDestination():\n if bug.getDestination():\n
assigned_to_dict.setdefault(bug.getDestination(), []).append(bug)\n assigned_to_dict.setdefault(bug.getSource(), []).append(bug)\n
else:\n else:\n
not_assigned_bug_list.append(bug)\n not_assigned_bug_list.append(bug)\n
bug_count += 1\n bug_count += 1\n
\n \n
for assignee, bug_list in assigned_to_dict.items():\n for assignee, bug_list in assigned_to_dict.items():\n
addBodyLine(" Assigned to %s:" % bug_list[0].getDestinationTitle())\n addBodyLine(" Assigned to %s:" % bug_list[0].getSourceTitle())\n
for bug in bug_list:\n for bug in bug_list:\n
addBodyLine(" [%s] %s" % (bug.getReference(), bug.getTitle()))\n addBodyLine(" [%s] %s" % (bug.getReference(), bug.getTitle()))\n
addBodyLine(" %s/%s/view" % (server_url, bug.getRelativeUrl()))\n addBodyLine(" %s/%s/view" % (server_url, bug.getRelativeUrl()))\n
......
388 389
\ 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