Enabled bundles: incorrect array from _comment_notify_get_comment_enabled_bundles()

Created on 18 November 2024, 4 days ago

Problem/Motivation

The function _comment_notify_get_comment_enabled_bundles() returns all possible bundles instead of enabled only.

Steps to reproduce

  1. Go to /admin/config/people/comment_notify
  2. Enable any bundle
  3. Debug return value from _comment_notify_get_comment_enabled_bundles()

Proposed resolution

For building enabled bundles use the same way as for CommentNotifySettings.php:buildForm() (Line 96).
Get bundles from service:

<?php
$bundle_types = \Drupal::config('comment_notify.settings')->get('bundle_types');
?>
🐛 Bug report
Status

Needs work

Version

1.4

Component

Code

Created by

🇧🇾Belarus maksim_matuzka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024