Archived
1
0
Fork 0

app/forms/UserSettings.php: need to add allowEmpty to id and email validator as the input elements are disabled.

This commit is contained in:
Henrik Hautakoski 2022-08-02 15:03:07 +02:00
parent 2f7c07c025
commit df922dd1e9

View file

@ -47,6 +47,7 @@ class UserSettings extends FormBase
));
$id->addValidator(new IdenticalValidator([
'accepted' => $this->getEntity()->getId(),
'allowEmpty' => true
]));
$id->setLabel('ID');
@ -97,6 +98,7 @@ class UserSettings extends FormBase
$email->addValidator(new IdenticalValidator([
'accepted' => $this->getEntity()->getEmail(),
'allowEmpty' => true
]));
$email->setLabel('Email');