Merge lp:~hbrunn/openobject-addons/6.1_lp1107816 into lp:openobject-addons/6.1

Proposed by Holger Brunn (Therp)
Status: Needs review
Proposed branch: lp:~hbrunn/openobject-addons/6.1_lp1107816
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
mail/mail_thread.py (+1/-1)
To merge this branch: bzr merge lp:~hbrunn/openobject-addons/6.1_lp1107816
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+145165@code.launchpad.net
To post a comment you must log in.
7138. By Holger Brunn (Therp)

[FIX] pass empty string to regex if subject is none - do it right

Unmerged revisions

7138. By Holger Brunn (Therp)

[FIX] pass empty string to regex if subject is none - do it right

7137. By Holger Brunn (Therp)

[FIX] pass empty string to regex if subject is none

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mail/mail_thread.py'
2--- mail/mail_thread.py 2012-08-10 11:48:38 +0000
3+++ mail/mail_thread.py 2013-01-28 12:21:24 +0000
4@@ -358,7 +358,7 @@
5 match = tools.reference_re.search(references)
6 if match: res_id = match.group(1)
7 if not res_id:
8- match = tools.res_re.search(msg['subject'])
9+ match = tools.res_re.search(msg['subject'] or '')
10 if match: res_id = match.group(1)
11 if res_id:
12 res_id = int(res_id)