app/forms/UserSettings.php: need to add allowEmpty to id and email validator as the input elements are disabled.
This commit is contained in:
parent
2f7c07c025
commit
df922dd1e9
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ class UserSettings extends FormBase
|
||||||
));
|
));
|
||||||
$id->addValidator(new IdenticalValidator([
|
$id->addValidator(new IdenticalValidator([
|
||||||
'accepted' => $this->getEntity()->getId(),
|
'accepted' => $this->getEntity()->getId(),
|
||||||
|
'allowEmpty' => true
|
||||||
]));
|
]));
|
||||||
|
|
||||||
$id->setLabel('ID');
|
$id->setLabel('ID');
|
||||||
|
|
@ -97,6 +98,7 @@ class UserSettings extends FormBase
|
||||||
|
|
||||||
$email->addValidator(new IdenticalValidator([
|
$email->addValidator(new IdenticalValidator([
|
||||||
'accepted' => $this->getEntity()->getEmail(),
|
'accepted' => $this->getEntity()->getEmail(),
|
||||||
|
'allowEmpty' => true
|
||||||
]));
|
]));
|
||||||
|
|
||||||
$email->setLabel('Email');
|
$email->setLabel('Email');
|
||||||
|
|
|
||||||
Reference in a new issue