From 89f929840cba5cd7d778cf7db92a9a7304a4f5f2 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Sun, 27 Sep 2015 21:36:23 -0500 Subject: [PATCH] thread: Fix incorrect reply_to in postEmail --- include/class.thread.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class.thread.php b/include/class.thread.php index ffffe918d..7b5b94418 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -277,7 +277,7 @@ class Thread extends VerySimpleModel { * - subject - (string) email subject line (decoded) * - body - (string) email message body (decoded) */ - function postEmail($mailinfo) { + function postEmail($mailinfo, $entry=null) { // +==================+===================+=============+ // | Orig Thread-Type | Reply Thread-Type | Requires | // +==================+===================+=============+ @@ -308,7 +308,7 @@ class Thread extends VerySimpleModel { 'origin' => 'Email', 'source' => 'Email', 'ip' => '', - 'reply_to' => $this, + 'reply_to' => $entry, 'recipients' => $mailinfo['recipients'], 'to-email-id' => $mailinfo['to-email-id'], ); @@ -639,7 +639,7 @@ implements TemplateVariable { return $this; } - return $thread->postEmail($mailinfo); + return $thread->postEmail($mailinfo, $this); } function getId() { -- GitLab