Commit 58a8d246 authored by David Douard's avatar David Douard
Browse files

[hook] do NOT match on EMailThread.title when looking for exising thread (closes #9360100)

parent 4b24fd58be8b
......@@ -137,11 +137,6 @@ class AddEmailPreHook(hook.Hook):
if rset:
return rset[0][0]
subject = cleanup_subject(subject)
# XXX too unspecific?
rset = self._cw.execute('EmailThread X WHERE X title %(title)s',
{'title': subject})
if rset:
return rset[0][0]
thread = self._cw.create_entity('EmailThread', title=subject)
return thread.eid
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