Commit 2f3e944c authored by greggles's avatar greggles

bug #430428 by greggles: doesn't record subscription when only one notification type is enabled

parent 572de058
......@@ -120,14 +120,15 @@ function comment_notify_form_alter(&$form, &$form_state, $form_id) {
$form['notify_type'] = array(
'#type' => 'radios',
'#options' => $available_options,
'#default_value' => $preference,
);
}
else {
$form['notify_type'] = array(
'#type' => 'hidden',
'#default_value' => key($available_options),
);
}
$form['notify_type']['#default_value'] = $preference;
// If this is an existing comment we set the default value based on their selection last time.
if ($form['cid']['#value'] != '') {
......
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