Skip to content
Snippets Groups Projects
Commit 29b26fe0 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #537 from protich/feature/delivered-to-email


Only add collaborators if the system email in the To and Cc list was determined

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 228f816f 8e6b55d2
No related branches found
No related tags found
No related merge requests found
......@@ -1521,8 +1521,10 @@ class Ticket {
$this->setLastMsgId($message->getId());
//Add email recipients as collaborators
if ($vars['recipients']) {
//Add email recipients as collaborators...
if ($vars['recipients']
//Only add if we have a matched local address
&& $vars['emailId']) {
//New collaborators added by other collaborators are disable --
// requires staff approval.
$info = array(
......@@ -2280,6 +2282,9 @@ class Ticket {
.' ,ip_address='.db_input($ipaddress)
.' ,source='.db_input($source);
if (isset($vars['emailId']) && $vars['emailId'])
$sql.=', email_id='.db_input($vars['emailId']);
//Make sure the origin is staff - avoid firebug hack!
if($vars['duedate'] && !strcasecmp($origin,'staff'))
$sql.=' ,duedate='.db_input(date('Y-m-d G:i',Misc::dbtime($vars['duedate'].' '.$vars['time'])));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment