mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix trimming for email in person / thirdparty
This commit is contained in:
parent
f47fb17b8d
commit
c7762dd6d2
@ -1568,13 +1568,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
|
|
||||||
public function setEmail(?string $email): self
|
public function setEmail(?string $email): self
|
||||||
{
|
{
|
||||||
if (null === $email) {
|
$this->email = trim((string) $email);
|
||||||
$email = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$email = trim($email);
|
|
||||||
|
|
||||||
$this->email = $email;
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -762,8 +762,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
*/
|
*/
|
||||||
public function setEmail($email = null)
|
public function setEmail($email = null)
|
||||||
{
|
{
|
||||||
$email = trim($email);
|
$this->email = trim((string) $email);
|
||||||
$this->email = $email;
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user