Skip to content
Snippets Groups Projects
Commit e8308e79 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge branch 'FHenry-3.5' into 3.5

parents 03f9f0ba 697f68c9
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ Fix: Can disable features with PHPEXCEL (no DLSF compatible). ...@@ -11,6 +11,7 @@ Fix: Can disable features with PHPEXCEL (no DLSF compatible).
Fix: Can disable features with CKEDITOR. Fix: Can disable features with CKEDITOR.
Fix: Pb of records not correctly cleaned when module marge is Fix: Pb of records not correctly cleaned when module marge is
uninstalled (conflict between 'margin' and 'margins'). uninstalled (conflict between 'margin' and 'margins').
Fix: [ bug #1341 ] Lastname not added by file or direct input in mass e-mailing
***** ChangeLog for 3.5.2 compared to 3.5.1 ***** ***** ChangeLog for 3.5.2 compared to 3.5.1 *****
Fix: Can't add user for a task. Fix: Can't add user for a task.
......
...@@ -168,7 +168,7 @@ class MailingTargets // This can't be abstract as it is used for some method ...@@ -168,7 +168,7 @@ class MailingTargets // This can't be abstract as it is used for some method
$sql.= "'".$this->db->escape($targetarray['other'])."',"; $sql.= "'".$this->db->escape($targetarray['other'])."',";
$sql.= "'".$this->db->escape($targetarray['source_url'])."',"; $sql.= "'".$this->db->escape($targetarray['source_url'])."',";
$sql.= (empty($targetarray['source_id']) ? 'null' : "'".$this->db->escape($targetarray['source_id'])."'").","; $sql.= (empty($targetarray['source_id']) ? 'null' : "'".$this->db->escape($targetarray['source_id'])."'").",";
$sql .= "'".$this->db->escape(dol_hash($targetarray['email'].';'.$targetarray['name'].';'.$mailing_id.';'.$conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY))."',"; $sql .= "'".$this->db->escape(dol_hash($targetarray['email'].';'.$targetarray['lastname'].';'.$mailing_id.';'.$conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY))."',";
$sql .= "'".$this->db->escape($targetarray['source_type'])."')"; $sql .= "'".$this->db->escape($targetarray['source_type'])."')";
$result=$this->db->query($sql); $result=$this->db->query($sql);
if ($result) if ($result)
......
...@@ -166,7 +166,7 @@ class mailing_xinputfile extends MailingTargets ...@@ -166,7 +166,7 @@ class mailing_xinputfile extends MailingTargets
{ {
$cibles[$j] = array( $cibles[$j] = array(
'email' => $email, 'email' => $email,
'name' => $name, 'lastname' => $name,
'firstname' => $firstname, 'firstname' => $firstname,
'other' => $other, 'other' => $other,
'source_url' => '', 'source_url' => '',
......
...@@ -134,7 +134,7 @@ class mailing_xinputuser extends MailingTargets ...@@ -134,7 +134,7 @@ class mailing_xinputuser extends MailingTargets
{ {
$cibles[] = array( $cibles[] = array(
'email' => $email, 'email' => $email,
'name' => $lastname, 'lastname' => $lastname,
'firstname' => $firstname, 'firstname' => $firstname,
'other' => $other, 'other' => $other,
'source_url' => '', 'source_url' => '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment