Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
247451fc
Commit
247451fc
authored
Mar 25, 2006
by
Gerhard Killesreiter
Browse files
do not allow override of #value => NULL for #type => value elements
patch by chx
parent
d25fa75e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
247451fc
...
...
@@ -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'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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