Skip to content

Commit 222abe1

Browse files
Neograph734helmo
authored andcommitted
Issue #2821365 by Neograph734, helmo: Clients cannot create sites because of missing database options
1 parent bed9eaf commit 222abe1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/hosting_site.form.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function _hosting_site_field(&$form, $node, $item, $element, $filter_display = '
1616
// Create it.
1717
if (($element['#type'] == 'radios') && !count($element['#options'])) {
1818
$form[$item] = array(
19-
'#type' => 'hidden',
20-
'#value' => key($element['#options']),
19+
'#type' => 'value',
20+
'#value' => !empty($element['#default_value']) ? $element['#default_value'] : NULL,
2121
);
2222
}
2323
else {

0 commit comments

Comments
 (0)