Commit 31e5c9fe authored by gnuget's avatar gnuget Committed by gnuget

Issue #3037118 by gnuget, SirClickALot: User choices not properly reflected...

Issue #3037118 by gnuget, SirClickALot: User choices not properly reflected when re-visiting the user account screen
parent 56a37b06
......@@ -254,7 +254,7 @@ function comment_notify_form_user_form_alter(&$form, FormStateInterface &$form_s
$form['comment_notify_settings']['entity_notify'] = [
'#type' => 'checkbox',
'#title' => t('Receive content follow-up notification e-mails'),
'#default_value' => isset($notify_settings->node_notify) ? $notify_settings->node_notify : NULL,
'#default_value' => isset($notify_settings->entity_notify) ? $notify_settings->entity_notify : NULL,
'#description' => t('Check this box to receive an e-mail notification for follow-ups on your content. You can not disable notifications for individual threads.'),
......@@ -189,6 +189,7 @@ class CommentNotifyUserPreferencesTest extends CommentNotifyTestBase {
$node_notify_preference = comment_notify_get_user_entity_notify_preference($this->authenticatedUser->id());
$this->assertEquals(COMMENT_NOTIFY_ENTITY, $node_notify_preference);
$this->assertSession()->checkboxChecked(t('Receive content follow-up notification e-mails'));
// Tests that the notification is sent when the content created by the user
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