Fix issue variables whithread and errors

This commit is contained in:
Lamrani Abdel 2022-11-09 12:37:00 +01:00
parent 055627e248
commit d1ae66dd11

View File

@ -126,7 +126,7 @@ class FormTicket
$this->withcompany = isModEnabled("societe");
$this->withfromsocid = 0;
$this->withfromcontactid = 0;
//$this->withreadid=0;
$this->withreadid=0;
//$this->withtitletopic='';
$this->withnotifytiersatcreate = 0;
$this->withusercreate = 1;
@ -1394,7 +1394,7 @@ class FormTicket
$result = $formmail->fetchAllEMailTemplate($this->param["models"], $user, $outputlangs);
if ($result < 0) {
setEventMessages($this->error, $this->errors, 'errors');
setEventMessage($this->error, 'errors');
}
$modelmail_array = array();
foreach ($formmail->lines_model as $line) {