diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 8310db730ab..08474776512 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -225,6 +225,7 @@ class FormMail extends Form /** * Get the form to input an email * this->withfile: 0=No attaches files, 1=Show attached files, 2=Can add new attached files + * this->param: Contains more parameteres like email templates info * * @param string $addfileaction Name of action when posting file attachments * @param string $removefileaction Name of action when removing file attachments @@ -252,7 +253,7 @@ class FormMail extends Form return $hookmanager->resPrint; } else - { + { $out=''; // Define list of attached files @@ -281,14 +282,16 @@ class FormMail extends Form $model_id=$this->param["models_id"]; } $arraydefaultmessage=$this->getEMailTemplate($this->db, $this->param["models"], $user, $outputlangs, $model_id); + //var_dump($arraydefaultmessage); - $out.= "\n\n"; + $out.= "\n\n"; if ($this->withform == 1) { - $out.= '