trim email

This commit is contained in:
Julie Lenaerts 2022-03-31 10:24:58 +02:00
parent e027958c63
commit dcddf4b3f1
3 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,7 @@ and this project adheres to
* [parcours] Create document buttons made sticky (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/532) * [parcours] Create document buttons made sticky (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/532)
* [person] Trailing guillemet removed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/530) * [person] Trailing guillemet removed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/530)
* [notification] Display of social action within workflow notification set to display block (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/537) * [notification] Display of social action within workflow notification set to display block (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/537)
* [onthefly] trim trailing whitespace in email of person and thirdparty (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/542)
## Test releases ## Test releases

View File

@ -1572,6 +1572,8 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
$email = ''; $email = '';
} }
$email = trim($email);
$this->email = $email; $this->email = $email;
return $this; return $this;

View File

@ -762,6 +762,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
*/ */
public function setEmail($email = null) public function setEmail($email = null)
{ {
$email = trim($email);
$this->email = $email; $this->email = $email;
return $this; return $this;