From 74ed76b924771f304fe12167ff51d861fcf0b735 Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Tue, 28 Aug 2018 15:42:55 -0500 Subject: [PATCH] Implement Referral Internal Notes This commit stores internal notes if an Agent includes one while creating a Thread Referral. --- include/ajax.tickets.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ajax.tickets.php b/include/ajax.tickets.php index 68ff2fbac..4f5e7a62b 100644 --- a/include/ajax.tickets.php +++ b/include/ajax.tickets.php @@ -443,6 +443,9 @@ function refer($tid, $target=null) { switch ($_POST['do']) { case 'refer': if ($form->isValid() && $ticket->refer($form, $errors)) { + $clean = $form->getClean(); + if ($clean['comments']) + $ticket->logNote('Referral', $clean['comments'], $thisstaff); $_SESSION['::sysmsgs']['msg'] = sprintf( __('%s successfully'), sprintf( -- GitLab