FIX - strlower to email

This commit is contained in:
Anthony Berton 2022-07-28 14:55:42 +02:00
parent 517efeebd1
commit 7301ef6bfa
2 changed files with 2 additions and 2 deletions

View File

@ -563,7 +563,7 @@ class Contact extends CommonObject
$this->ref_ext = trim($this->ref_ext);
$this->lastname = trim($this->lastname) ?trim($this->lastname) : trim($this->lastname);
$this->firstname = trim($this->firstname);
$this->email = trim($this->email);
$this->email = dol_strtolower(trim($this->email));
$this->phone_pro = trim($this->phone_pro);
$this->phone_perso = trim($this->phone_perso);
$this->phone_mobile = trim($this->phone_mobile);

View File

@ -1279,7 +1279,7 @@ class Societe extends CommonObject
$this->fax = trim($this->fax);
$this->fax = preg_replace("/\s/", "", $this->fax);
$this->fax = preg_replace("/\./", "", $this->fax);
$this->email = trim($this->email);
$this->email = dol_strtolower(trim($this->email));
$this->url = $this->url ?clean_url($this->url, 0) : '';
$this->note_private = trim($this->note_private);
$this->note_public = trim($this->note_public);