- Issue created by @fvorillion
- Assigned to shalini_jha
- Merge request !9issue-3396854-email-notification-with-empty-body-fixes → (Merged) created by shalini_jha
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 11:53am 27 October 2023 - 🇮🇳India shalini_jha
Hi @fvorillion
I have added an MR for the fixes of this issue.please review
Thanks Hi @shalini_jha
The fix works :)May be add to the description of this module to use a Html messaging module to have a better rendering of emails (for example https://www.drupal.org/project/symfony_mailer → ).
Hi @shalini_jha
If you can modify a bit your MR, please add the following code to filter with only the necessary informations :
$view = \Drupal\views\Views::getView('status_dashboard'); $view->setExposedInput(['has_security_updates' => 1]); $dashboard = $view->preview('page'); if (count($view->result) > 0) { $params['message'] = \Drupal::service('renderer')->renderPlain($dashboard); } else { $params['message'] = t('No updates available.'); }
A other approach for email notification will be to :
- duplicate "page" view to "mail_page" view for example
- remove filter by name and add filter to core security and features
- use the config to filter the view with preferences
But i think it needs an other ticket.Anyway, Thanks for your work :)
- Status changed to RTBC
6 months ago 11:02pm 15 May 2024 - Status changed to Fixed
6 months ago 10:28pm 4 June 2024 - Status changed to RTBC
6 months ago 5:53am 5 June 2024 -
BramDriesen →
committed 2df4de12 on 2.0.x authored by
shalini_jha →
Issue #3396854 by shalini_jha, fvorillion, BramDriesen: Email...
-
BramDriesen →
committed 2df4de12 on 2.0.x authored by
shalini_jha →
- Status changed to Fixed
6 months ago 6:01am 5 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.