Merged 9.2.18.
commit
ed7188b2ea
core/lib/Drupal/Core/Form
|
@ -8125,5 +8125,5 @@
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "7.3.0"
|
"php": "7.3.0"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.2.0"
|
"plugin-api-version": "2.3.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1218,7 +1218,7 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
|
||||||
// #access=FALSE on an element usually allow access for some users, so forms
|
// #access=FALSE on an element usually allow access for some users, so forms
|
||||||
// submitted with self::submitForm() may bypass access restriction and be
|
// submitted with self::submitForm() may bypass access restriction and be
|
||||||
// treated as high-privilege users instead.
|
// treated as high-privilege users instead.
|
||||||
$process_input = empty($element['#disabled']) && ($element['#type'] !== 'value') && (($form_state->isProgrammed() && $form_state->isBypassingProgrammedAccessChecks()) || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));
|
$process_input = empty($element['#disabled']) && !in_array($element['#type'], ['item', 'value'], TRUE) && (($form_state->isProgrammed() && $form_state->isBypassingProgrammedAccessChecks()) || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));
|
||||||
|
|
||||||
// Set the element's #value property.
|
// Set the element's #value property.
|
||||||
if (!isset($element['#value']) && !array_key_exists('#value', $element)) {
|
if (!isset($element['#value']) && !array_key_exists('#value', $element)) {
|
||||||
|
|
Loading…
Reference in New Issue