Update ActionComm type_code on email message ticket
This commit is contained in:
parent
3869354a17
commit
ba2aafaf6f
@ -1732,6 +1732,7 @@ class Ticket extends CommonObject
|
||||
$error = 0;
|
||||
|
||||
$now = dol_now();
|
||||
$send_email = GETPOST('send_email','int');
|
||||
|
||||
// Clean parameters
|
||||
if (isset($this->fk_track_id)) {
|
||||
@ -1752,6 +1753,9 @@ class Ticket extends CommonObject
|
||||
if ($this->private) {
|
||||
$actioncomm->code = 'TICKET_MSG_PRIVATE';
|
||||
}
|
||||
if ($send_email > 0){
|
||||
$actioncomm->type_code = 'AC_EMAIL';
|
||||
}
|
||||
$actioncomm->socid = $this->socid;
|
||||
$actioncomm->label = $this->subject;
|
||||
$actioncomm->note_private = $this->message;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user