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 ...@@ -82,7 +82,12 @@ if bug.getBugSeverityUid() is not None:\n
bug_severity_list[-1].getUid() ==\\\n bug_severity_list[-1].getUid() ==\\\n
bug.getBugSeverityUid():\n bug.getBugSeverityUid():\n
recipient_list.extend(bug.getSourceDecisionValueList())\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> </string> </value>
</item> </item>
<item> <item>
...@@ -141,6 +146,9 @@ return recipient_list\n ...@@ -141,6 +146,9 @@ return recipient_list\n
<string>recipient_list</string> <string>recipient_list</string>
<string>bug_severity_list</string> <string>bug_severity_list</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>unique_recipient_list</string>
<string>recipient</string>
<string>ur</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -159,6 +167,12 @@ return recipient_list\n ...@@ -159,6 +167,12 @@ return recipient_list\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>BugLine_getRecipientValueList</string> </value> <value> <string>BugLine_getRecipientValueList</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
362 365
\ 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