Skip to content
Snippets Groups Projects
Commit 6193d825 authored by Peter Rotich's avatar Peter Rotich
Browse files

bug: Init $options

SendAlert expects an array as options param.
parent e10eb42c
No related branches found
No related tags found
No related merge requests found
......@@ -1931,8 +1931,9 @@ implements RestrictedAccess, Threadable {
$this->logEvent('transferred');
// Post internal note if any
$note = $form->getField('comments')->getClean();
if ($note) {
$note = null;
$comments = $form->getField('comments')->getClean();
if ($comments) {
$title = sprintf(__('%1$s transferred from %2$s to %3$s'),
__('Ticket'),
$cdept->getName(),
......@@ -1940,7 +1941,7 @@ implements RestrictedAccess, Threadable {
$_errors = array();
$note = $this->postNote(
array('note' => $note, 'title' => $title),
array('note' => $comments, 'title' => $title),
$_errors, $thisstaff, false);
}
......@@ -1980,7 +1981,7 @@ implements RestrictedAccess, Threadable {
) {
$recipients[] = $manager;
}
$sentlist = array();
$sentlist = $options = array();
if ($note) {
$options += array(
'inreplyto'=>$note->getEmailMessageId(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment