From e09e6ffe2cf452a015053fbd94a94bc4c7f1a9b4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Apr 2023 22:57:43 +0200 Subject: [PATCH] Fix error message --- htdocs/emailcollector/class/emailcollector.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/emailcollector/class/emailcollector.class.php b/htdocs/emailcollector/class/emailcollector.class.php index cb06609562d..682c539b784 100644 --- a/htdocs/emailcollector/class/emailcollector.class.php +++ b/htdocs/emailcollector/class/emailcollector.class.php @@ -2838,6 +2838,8 @@ class EmailCollector extends CommonObject if (empty($projecttocreate->ref) || (is_numeric($projecttocreate->ref) && $projecttocreate->ref <= 0)) { $errorforactions++; $this->error = 'Failed to create project: Can\'t get a valid value for the field ref with numbering template = '.$modele.', thirdparty id = '.$thirdpartystatic->id; + + $operationslog .= '
'.$this->error; } else { // Create project $result = $projecttocreate->create($user); @@ -2845,6 +2847,8 @@ class EmailCollector extends CommonObject $errorforactions++; $this->error = 'Failed to create project: '.$langs->trans($projecttocreate->error); $this->errors = $projecttocreate->errors; + + $operationslog .= '
'.$this->error; } else { if ($attachments) { $destdir = $conf->project->dir_output.'/'.$projecttocreate->ref;