Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d04a6a84
Commit
d04a6a84
authored
Dec 18, 2015
by
Alex Pott
Browse files
Issue
#2637458
by legolasbo: Remove !placeholder in FormValidator::performRequiredValidation()
parent
dffb3050
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Form/FormValidator.php
View file @
d04a6a84
...
...
@@ -346,7 +346,7 @@ protected function performRequiredValidation(&$elements, FormStateInterface &$fo
foreach
(
$value
as
$v
)
{
if
(
!
isset
(
$options
[
$v
]))
{
$form_state
->
setError
(
$elements
,
$this
->
t
(
'An illegal choice has been detected. Please contact the site administrator.'
));
$this
->
logger
->
error
(
'Illegal choice %choice in
!
name element.'
,
array
(
'%choice'
=>
$v
,
'
!
name'
=>
empty
(
$elements
[
'#title'
])
?
$elements
[
'#parents'
][
0
]
:
$elements
[
'#title'
]));
$this
->
logger
->
error
(
'Illegal choice %choice in
%
name element.'
,
array
(
'%choice'
=>
$v
,
'
%
name'
=>
empty
(
$elements
[
'#title'
])
?
$elements
[
'#parents'
][
0
]
:
$elements
[
'#title'
]));
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment