Commit 28b2e294 authored by nkoporec's avatar nkoporec Committed by greggles

Issue #2951094 by nkoporec, krina.addweb: No default value set

parent 5eef9460
......@@ -75,7 +75,7 @@ function comment_notify_form_comment_form_alter(&$form, FormStateInterface $form
$form['comment_notify_settings']['notify_type'] = array(
'#type' => 'radios',
'#options' => $available_options,
'#default_value' => $preference ? $preference : 1,
'#default_value' => $preference != "none" ? $preference : 1,
);
if (count($available_options) == 1) {
$form['comment_notify_settings']['notify_type']['#type'] = 'hidden';
......
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