From cbb80754feb2c1889666d74125e1f1fb31e41afc Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Thu, 13 Aug 2015 17:27:21 -0400 Subject: [PATCH] #231 Append, don't replace the replies sql --- inc/admin_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/admin_functions.inc.php b/inc/admin_functions.inc.php index 30b4671c..03224155 100644 --- a/inc/admin_functions.inc.php +++ b/inc/admin_functions.inc.php @@ -273,7 +273,7 @@ function hesk_mergeTickets($merge_these, $merge_into) { $res = hesk_dbQuery("SELECT `dt`, `staffid` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."replies` WHERE `replyto`=".intval($ticket['id'])." AND `staffid`>0 ORDER BY `dt` ASC LIMIT 1"); $reply = hesk_dbFetchAssoc($res); - $replies_sql = " `firstreply`='".hesk_dbEscape($reply['dt'])."', `firstreplyby`=".intval($reply['staffid'])." , "; + $replies_sql .= " `firstreply`='".hesk_dbEscape($reply['dt'])."', `firstreplyby`=".intval($reply['staffid'])." , "; } /* Update history (log) and merged IDs of target ticket */