From ad105e97d11416bd814e23fc8f85fef4b4710d40 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 18 Jun 2021 13:57:08 +0200 Subject: [PATCH] Allow creation of client --- htdocs/emailcollector/class/emailcollector.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/emailcollector/class/emailcollector.class.php b/htdocs/emailcollector/class/emailcollector.class.php index c39f97994b4..573bb6bd5b3 100644 --- a/htdocs/emailcollector/class/emailcollector.class.php +++ b/htdocs/emailcollector/class/emailcollector.class.php @@ -1721,6 +1721,13 @@ class EmailCollector extends CommonObject // Overwrite values with values extracted from source email $errorforthisaction = $this->overwritePropertiesOfObject($thirdpartystatic, $operation['actionparam'], $messagetext, $subject, $header); + if ($thirdpartystatic->client && empty($thirdpartystatic->code_client)) { + $thirdpartystatic->code_client = 'auto'; + } + if ($thirdpartystatic->fournisseur && empty($thirdpartystatic->code_fournisseur)) { + $thirdpartystatic->code_fournisseur = 'auto'; + } + if ($errorforthisaction) { $errorforactions++; } else {