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
......@@ -326,7 +326,7 @@ function form_builder($form_id, $form) {
$ref =& $ref[$parent];
}
$form['#ref'] = &$ref;
if (!isset($form['#value'])) {
if (!isset($form['#value']) && !array_key_exists('#value', $form)) {
if ($posted) {
switch ($form['#type']) {
case 'checkbox':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment