Fix error message
This commit is contained in:
parent
eb0e56d9dd
commit
e09e6ffe2c
@ -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 .= '<br>'.$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 .= '<br>'.$this->error;
|
||||
} else {
|
||||
if ($attachments) {
|
||||
$destdir = $conf->project->dir_output.'/'.$projecttocreate->ref;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user