Email notification with empty body

Created on 26 October 2023, about 1 year ago
Updated 19 June 2024, 6 months ago

Problem/Motivation

The email notification of the report has empty body.

Steps to reproduce

  • Install the latest version of Drupal (10.1.5)
  • Install the module Status Dashboard (2.0.0-alpha5)
  • Add some client on Status Dashboard config
  • Enable email notification with the following options :
    • Period : Daily
    • Core updates checked
    • Security updates checked

Proposed resolution

In status_dashboard.module, function _dashboard_module_send_notification_mail() :
replace :

$dashboard = views_embed_view('status_dashboard', 'page');

with :

$view = \Drupal\views\Views::getView('status_dashboard');
$dashboard = $view->preview('page');

Or something equivalent (because it's not ready for plain text use).

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

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