diff --git a/CHANGELOG.md b/CHANGELOG.md index 880c6b7..062ba02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa ## [Unreleased] +- [PR-215](https://github.com/OS2Forms/os2forms/pull/215) + Added condition to maestro notification submission handler - [PR-101](https://github.com/OS2Forms/os2forms/pull/101) - Added support for `os2web_key` in Digital post - Switched from saving settings in key value store to config, i.e diff --git a/modules/os2forms_forloeb/src/MaestroHelper.php b/modules/os2forms_forloeb/src/MaestroHelper.php index d2dd0c5..0beea88 100644 --- a/modules/os2forms_forloeb/src/MaestroHelper.php +++ b/modules/os2forms_forloeb/src/MaestroHelper.php @@ -239,6 +239,7 @@ private function sendNotification( || $handler->isDisabled() || $handler->isExcluded() || !$handler->isNotificationEnabled($notificationType) + || !$handler->checkConditions($submission) ) { continue; }