We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents72daec9 +2fa5fa3 commitfa14686Copy full SHA for fa14686
form/events.rst
@@ -283,7 +283,7 @@ method of the ``FormFactory``::
283
// checks whether the user has chosen to display their email or not.
284
// If the data was submitted previously, the additional value that is
285
// included in the request variables needs to be removed.
286
- if (true === $user['showEmail']) {
+ if (isset($user['showEmail']) && $user['showEmail']) {
287
$form->add('email', EmailType::class);
288
} else {
289
unset($user['email']);
@@ -379,7 +379,7 @@ Consider the following example of a form event subscriber::
379
380
// If the data was submitted previously, the additional value that
381
// is included in the request variables needs to be removed.
382
383
384
385