-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1575 from ConductionNL/feature/IM-85/log-email-te…
…mplate Some fixes for log Actions and Sending emails
- Loading branch information
Showing
6 changed files
with
576 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
use Twig\Error\RuntimeError; | ||
use Twig\Error\SyntaxError; | ||
|
||
// todo: move this to an email plugin with the following packages from composer.json: symfony/mailer, symfony/mailgun-mailer & symfony/http-client | ||
// todo: move this to an email plugin with the following packages from composer.json: symfony/mailer, symfony/mailgun-mailer, symfony/sendinblue-mailer & symfony/http-client | ||
|
||
/** | ||
* @Author Wilco Louwerse <[email protected]>, Ruben van der Linde <[email protected]>, Sarai Misidjan <[email protected]> | ||
|
@@ -71,8 +71,11 @@ private function sendEmail(): bool | |
$variables = []; | ||
|
||
foreach ($this->configuration['variables'] as $key => $variable) { | ||
if (array_key_exists($variable, $this->data['response'])) { | ||
// Response is the default used for creating emails after an /api endpoint has been called and returned a response. | ||
if (isset($this->data['response']) === true && array_key_exists($variable, $this->data['response'])) { | ||
$variables[$key] = $this->data['response'][$variable]; | ||
} elseif (array_key_exists($variable, $this->data)) { | ||
$variables[$key] = $this->data[$variable]; | ||
} | ||
} | ||
|
||
|
Oops, something went wrong.