diff --git a/include/class.collaborator.php b/include/class.collaborator.php index 5081672213aebe6070d621d01772a897966b4915..d6fdbbfc566baf4ea95f039db4ada378648cfb97 100644 --- a/include/class.collaborator.php +++ b/include/class.collaborator.php @@ -98,6 +98,7 @@ implements EmailContact, ITicketUser { switch (strtolower($what)) { case 'ticket_link': + $qstr = array(); if ($this->getTicket()->getAuthToken($this) && ($ticket=$this->getTicket()) && !$ticket->getThread()->getNumCollaborators()) { diff --git a/include/class.ticket.php b/include/class.ticket.php index 4cdb6db1cdd345427e43d2022b73913f58d7d1bb..332f10c125736d786c7cbd9f3ec569eb0ba258c0 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -949,7 +949,6 @@ implements RestrictedAccess, Threadable, Searchable { ))->update(array( 'updated' => SqlFunction::NOW(), )); - $collab->save(); } if ($cids) { @@ -2349,6 +2348,7 @@ implements RestrictedAccess, Threadable, Searchable { $c = $this->getThread()->addCollaborator($user,array(), $errors); + $addresses = array(); foreach (array('To', 'TO', 'Cc', 'CC') as $k) { if ($user && isset($hdr[$k]) && $hdr[$k]) $addresses[] = Mail_Parse::parseAddressList($hdr[$k]); diff --git a/scp/tickets.php b/scp/tickets.php index fc4eb4b66c7eb425385252d9f2a4ef43ffe67566..5f7002bfc9d2b84251c2921174f381aafe7c6f49 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -473,6 +473,7 @@ $queues = CustomQueue::queues() foreach ($queues->findAll(array('parent_id' => 0)) as $q) { $nav->addSubMenu(function() use ($q, $queue) { + $selected = false; // A queue is selected if it is the one being displayed. It is // "child" selected if its ID is in the path of the one selected $child_selected = $queue @@ -487,6 +488,7 @@ as $q) { // Add my advanced searches $nav->addSubMenu(function() use ($queue) { global $thisstaff; + $selected = false; // A queue is selected if it is the one being displayed. It is // "child" selected if its ID is in the path of the one selected $child_selected = $queue instanceof SavedSearch;