NEW add MAIN_EMAILCOLLECTOR_MAIL_WITHOUT_HEADER const to remove header in email collector
This commit is contained in:
parent
e7c044cc05
commit
7eaf26b09e
@ -1672,8 +1672,10 @@ class EmailCollector extends CommonObject
|
|||||||
$description = dol_concatdesc($description, $messagetext);
|
$description = dol_concatdesc($description, $messagetext);
|
||||||
|
|
||||||
$descriptionfull = $description;
|
$descriptionfull = $description;
|
||||||
|
if (empty($conf->global->MAIN_EMAILCOLLECTOR_MAIL_WITHOUT_HEADER)) {
|
||||||
$descriptionfull = dol_concatdesc($descriptionfull, "----- Header");
|
$descriptionfull = dol_concatdesc($descriptionfull, "----- Header");
|
||||||
$descriptionfull = dol_concatdesc($descriptionfull, $header);
|
$descriptionfull = dol_concatdesc($descriptionfull, $header);
|
||||||
|
}
|
||||||
|
|
||||||
// Insert record of emails sent
|
// Insert record of emails sent
|
||||||
$actioncomm->type_code = 'AC_OTH_AUTO'; // Type of event ('AC_OTH', 'AC_OTH_AUTO', 'AC_XXX'...)
|
$actioncomm->type_code = 'AC_OTH_AUTO'; // Type of event ('AC_OTH', 'AC_OTH_AUTO', 'AC_XXX'...)
|
||||||
@ -1760,8 +1762,10 @@ class EmailCollector extends CommonObject
|
|||||||
$description = dol_concatdesc($description, $messagetext);
|
$description = dol_concatdesc($description, $messagetext);
|
||||||
|
|
||||||
$descriptionfull = $description;
|
$descriptionfull = $description;
|
||||||
|
if (empty($conf->global->MAIN_EMAILCOLLECTOR_MAIL_WITHOUT_HEADER)) {
|
||||||
$descriptionfull = dol_concatdesc($descriptionfull, "----- Header");
|
$descriptionfull = dol_concatdesc($descriptionfull, "----- Header");
|
||||||
$descriptionfull = dol_concatdesc($descriptionfull, $header);
|
$descriptionfull = dol_concatdesc($descriptionfull, $header);
|
||||||
|
}
|
||||||
|
|
||||||
$id_opp_status = dol_getIdFromCode($this->db, 'PROSP', 'c_lead_status', 'code', 'rowid');
|
$id_opp_status = dol_getIdFromCode($this->db, 'PROSP', 'c_lead_status', 'code', 'rowid');
|
||||||
$percent_opp_status = dol_getIdFromCode($this->db, 'PROSP', 'c_lead_status', 'code', 'percent');
|
$percent_opp_status = dol_getIdFromCode($this->db, 'PROSP', 'c_lead_status', 'code', 'percent');
|
||||||
@ -1874,8 +1878,10 @@ class EmailCollector extends CommonObject
|
|||||||
$description = dol_concatdesc($description, $messagetext);
|
$description = dol_concatdesc($description, $messagetext);
|
||||||
|
|
||||||
$descriptionfull = $description;
|
$descriptionfull = $description;
|
||||||
|
if (empty($conf->global->MAIN_EMAILCOLLECTOR_MAIL_WITHOUT_HEADER)) {
|
||||||
$descriptionfull = dol_concatdesc($descriptionfull, "----- Header");
|
$descriptionfull = dol_concatdesc($descriptionfull, "----- Header");
|
||||||
$descriptionfull = dol_concatdesc($descriptionfull, $header);
|
$descriptionfull = dol_concatdesc($descriptionfull, $header);
|
||||||
|
}
|
||||||
|
|
||||||
$tickettocreate->subject = $subject;
|
$tickettocreate->subject = $subject;
|
||||||
$tickettocreate->message = $description;
|
$tickettocreate->message = $description;
|
||||||
|
|||||||
@ -482,7 +482,7 @@ class Ticket extends CommonObject
|
|||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
if (!$id && !$track_id && !$ref) {
|
if (!$id && !$track_id && !$ref && !$email_msgid) {
|
||||||
$this->error = 'ErrorWrongParameters';
|
$this->error = 'ErrorWrongParameters';
|
||||||
dol_print_error(get_class($this)."::fetch ".$this->error);
|
dol_print_error(get_class($this)."::fetch ".$this->error);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user