Commit f8d9afa6 authored by Nicolas Delaby's avatar Nicolas Delaby

BugLine_getRecipientValueList should return only unique recipients

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23446 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64f4d2eb
......@@ -82,7 +82,12 @@ if bug.getBugSeverityUid() is not None:\n
bug_severity_list[-1].getUid() ==\\\n
bug.getBugSeverityUid():\n
recipient_list.extend(bug.getSourceDecisionValueList())\n
return recipient_list\n
\n
unique_recipient_list = []\n
for recipient in recipient_list:\n
if recipient.getRelativeUrl() not in [ur.getRelativeUrl() for ur in unique_recipient_list]:\n
unique_recipient_list.append(recipient)\n
return unique_recipient_list\n
</string> </value>
</item>
<item>
......@@ -141,6 +146,9 @@ return recipient_list\n
<string>recipient_list</string>
<string>bug_severity_list</string>
<string>_getitem_</string>
<string>unique_recipient_list</string>
<string>recipient</string>
<string>ur</string>
</tuple>
</value>
</item>
......@@ -159,6 +167,12 @@ return recipient_list\n
<key> <string>id</string> </key>
<value> <string>BugLine_getRecipientValueList</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
......
362
\ No newline at end of file
365
\ 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