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 '
'; print ''; print ''; @@ -991,19 +985,14 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd print ''; if (GETPOST('set', 'alpha') == 'properties' && $user->rights->ticket->write) { print ''; + // Type print ''; print $langs->trans('TicketChangeType'); print ''; print $formticket->selectTypesTickets($object->type_code, 'update_value_type', '', 2); print ''; print ''; - print ''; - print ''; - print $langs->trans('TicketChangeSeverity'); - print ''; - print $formticket->selectSeveritiesTickets($object->severity_code, 'update_value_severity', '', 2); - print ''; - print ''; + // Group print ''; print ''; print $langs->trans('TicketChangeCategory'); @@ -1011,6 +1000,14 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd print $formticket->selectGroupTickets($object->category_code, 'update_value_category', '', 2); print ''; print ''; + // Severity + print ''; + print ''; + print $langs->trans('TicketChangeSeverity'); + print ''; + print $formticket->selectSeveritiesTickets($object->severity_code, 'update_value_severity', '', 2); + print ''; + print ''; } else { // Type print '' . $langs->trans("Type") . ''; @@ -1019,15 +1016,6 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); }*/ print ''; - - // Severity - print '' . $langs->trans("TicketSeverity") . ''; - print $langs->getLabelFromKey($db, $object->severity_code, 'c_ticket_severity', 'code', 'label'); - /*if ($user->admin && !$noadmininfo) { - print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); - }*/ - print ''; - // Group print '' . $langs->trans("TicketGroup") . ''; print $langs->getLabelFromKey($db, $object->category_code, 'c_ticket_category', 'code', 'label'); @@ -1035,6 +1023,13 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); }*/ print ''; + // Severity + print '' . $langs->trans("TicketSeverity") . ''; + print $langs->getLabelFromKey($db, $object->severity_code, 'c_ticket_severity', 'code', 'label'); + /*if ($user->admin && !$noadmininfo) { + print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1); + }*/ + print ''; } print ''; // End table actions @@ -1215,7 +1210,6 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd $action = 'presend'; } - //if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'dellink' || $action == 'delete' || $action == 'edit_message_init') if ($action != 'add_message') { print '
'; @@ -1236,7 +1230,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd print '
'; print '
'; } - elseif ($action == 'add_message') + else { $action='new_message'; $modelmail='ticket_send'; diff --git a/htdocs/ticket/class/actions_ticket.class.php b/htdocs/ticket/class/actions_ticket.class.php index f84426c03f9..ccf2de50971 100644 --- a/htdocs/ticket/class/actions_ticket.class.php +++ b/htdocs/ticket/class/actions_ticket.class.php @@ -286,6 +286,8 @@ class ActionsTicket public function viewTicketOriginalMessage($user, $action, $object) { global $langs; + + print ''."\n"; if (!empty($user->rights->ticket->manage) && $action == 'edit_message_init') { // MESSAGE @@ -326,14 +328,15 @@ class ActionsTicket //print '
' . $object->message . '
'; } + if ($user->rights->ticket->manage && $action == 'edit_message_init') { + print '
'; + print ' '; + print ' '; + print '
'; + } print ''; print ''; print ''; - if ($user->rights->ticket->manage && $action == 'edit_message_init') { - print ' '; - print ' '; - print ''; - } } /** * View html list of message for ticket