Commit 8d739723 authored by Nicolas Delaby's avatar Nicolas Delaby

Use ExactMatch Key when searching on url_string

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25776 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c475f79c
......@@ -66,9 +66,9 @@ for recipient in text.split(\',\'):\n
# Remove extra spaces.\n
recipient = recipient.strip()\n
if recipient:\n
email = getResultValue(url_string=recipient, portal_type=\'Email\', parent_portal_type=\'Person\')\n
email = getResultValue(url_string={\'query\':recipient, \'key\':\'ExactMatch\'}, portal_type=\'Email\', parent_portal_type=\'Person\')\n
if email is None:\n
email = getResultValue(url_string=recipient, portal_type=\'Email\', parent_portal_type=\'Organisation\')\n
email = getResultValue(url_string={\'query\':recipient, \'key\':\'ExactMatch\'}, portal_type=\'Email\', parent_portal_type=\'Organisation\')\n
if email is not None:\n
result.append(email.getParentValue())\n
return result\n
......
335
\ No newline at end of file
337
\ 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