Commit 349267de authored by Romain Courteaud's avatar Romain Courteaud

Email is not uniq anymore.

New authentication ways allow to have multiple user with the same email.
parent 166f25ad
......@@ -58,9 +58,7 @@ person_list = []\n
\n
for subject in subject_list:\n
if subject:\n
result_list = portal.portal_catalog(limit=2, validation_state="validated", portal_type="Person", default_email_text=subject)\n
if len(result_list) == 1:\n
person_list.append(result_list[0].getObject())\n
person_list.extend([x.getObject() for x in portal.portal_catalog(validation_state="validated", portal_type="Person", default_email_text=subject)])\n
\n
sale_trade_condition.edit(destination_section_value_list=person_list)\n
</string> </value>
......
489
\ No newline at end of file
490
\ 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