diff --git a/htdocs/emailcollector/class/emailcollector.class.php b/htdocs/emailcollector/class/emailcollector.class.php index 4a8836b34f7..3e2e2126ff2 100644 --- a/htdocs/emailcollector/class/emailcollector.class.php +++ b/htdocs/emailcollector/class/emailcollector.class.php @@ -1265,7 +1265,6 @@ class EmailCollector extends CommonObject } - // Do operations foreach($this->actions as $operation) { @@ -1476,7 +1475,7 @@ class EmailCollector extends CommonObject //$actioncomm->extraparams = $extraparams; // Overwrite values with values extracted from source email - $errorforthisaction = $this->overwritePropertiesOfObject($actioncommn, $operation['actionparam'], $messagetext, $subject, $header); + $errorforthisaction = $this->overwritePropertiesOfObject($actioncomm, $operation['actionparam'], $messagetext, $subject, $header); if ($errorforthisaction) { @@ -1610,10 +1609,11 @@ class EmailCollector extends CommonObject $descriptionfull = dol_concatdesc($descriptionfull, $header); $tickettocreate->title = $subject; + $tickettocreate->message = $description; $tickettocreate->type_code = 0; $tickettocreate->category_code = 0; $tickettocreate->severity_code = 0; - $tickettocreate->origin_email = $fromstring; + $tickettocreate->origin_email = $from; $tickettocreate->fk_user_create = $user->id; $tickettocreate->entity = $conf->entity; $tickettocreate->datec = $date; diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index d85d7973305..0ad4c5dfc83 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -246,9 +246,10 @@ YourPasswordHasBeenReset=Your password has been reset successfully ApplicantIpAddress=IP address of applicant SMSSentTo=SMS sent to %s MissingIds=Missing ids -ThirdPartyCreatedByEmailCollector=Third party created by email collector from email ID %s -ContactCreatedByEmailCollector=Contact/address created by email collector from email ID %s -ProjectCreatedByEmailCollector=Project created by email collector from email ID %s +ThirdPartyCreatedByEmailCollector=Third party created by email collector from email MSGID %s +ContactCreatedByEmailCollector=Contact/address created by email collector from email MSGID %s +ProjectCreatedByEmailCollector=Project created by email collector from email MSGID %s +TicketCreatedByEmailCollector=Ticket created by email collector from email MSGID %s ##### Export ##### ExportsArea=Exports area diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php index 99c7ba15279..44abe008d34 100644 --- a/htdocs/ticket/card.php +++ b/htdocs/ticket/card.php @@ -644,7 +644,6 @@ if ($action == 'create' || $action == 'presend') if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'dellink' || $action == 'add_message' || $action == 'close' || $action == 'delete' || $action == 'editcustomer' || $action == 'progression' || $action == 'reopen' || $action == 'editsubject' || $action == 'edit_extras' || $action == 'update_extras' || $action == 'edit_extrafields' || $action == 'set_extrafields' || $action == 'classify' || $action == 'sel_contract' || $action == 'edit_message_init' || $action == 'set_status' || $action == 'dellink') { - if ($res > 0) { // or for unauthorized internals users @@ -959,12 +958,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd $actionobject->viewTicketOriginalMessage($user, $action, $object); - /*************************************************** - * - * Classification and actions on ticket - * - ***************************************************/ - + // Classification of ticket print '