Skip to content
Snippets Groups Projects
Unverified Commit 3cbc57e6 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #17 from aydreeihn/issue/initial-responses

Code Improvement
parents 73f5ac09 2020370e
Branches
Tags
No related merge requests found
...@@ -1370,8 +1370,8 @@ implements RestrictedAccess, Threadable, Searchable { ...@@ -1370,8 +1370,8 @@ implements RestrictedAccess, Threadable, Searchable {
return false; return false;
} }
function checkReply($userType, $replyType, $forceAlert=false) { function checkReply($userType, $replyType) {
if ($userType == 'cc' && ($replyType == 'reply-all' || $forceAlert)) if ($userType == 'cc' && $replyType == 'reply-all')
return true; return true;
if ($userType == 'user' && ($replyType == 'reply-all' || $replyType == 'reply-user')) if ($userType == 'user' && ($replyType == 'reply-all' || $replyType == 'reply-user'))
...@@ -2944,7 +2944,7 @@ implements RestrictedAccess, Threadable, Searchable { ...@@ -2944,7 +2944,7 @@ implements RestrictedAccess, Threadable, Searchable {
$attachments = $cfg->emailAttachments() ? $response->getAttachments() : array(); $attachments = $cfg->emailAttachments() ? $response->getAttachments() : array();
//Cc collaborators //Cc collaborators
$collabsCc = array(); $collabsCc = array();
if ($vars['ccs'] && Ticket::checkReply('cc', $vars['emailreply'], true)) { if ($vars['ccs']) {
$collabsCc[] = Collaborator::getCollabList($vars['ccs']); $collabsCc[] = Collaborator::getCollabList($vars['ccs']);
$collabsCc['cc'] = $collabsCc[0]; $collabsCc['cc'] = $collabsCc[0];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment