Skip to content
Snippets Groups Projects
Commit 247451fc authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

do not allow override of #value => NULL for #type => value elements

 patch by chx
parent d25fa75e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -326,7 +326,7 @@ function form_builder($form_id, $form) { ...@@ -326,7 +326,7 @@ function form_builder($form_id, $form) {
$ref =& $ref[$parent]; $ref =& $ref[$parent];
} }
$form['#ref'] = &$ref; $form['#ref'] = &$ref;
if (!isset($form['#value'])) { if (!isset($form['#value']) && !array_key_exists('#value', $form)) {
if ($posted) { if ($posted) {
switch ($form['#type']) { switch ($form['#type']) {
case 'checkbox': case 'checkbox':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment