From eb7f3783a4013c7e2db93355252e68a64b380462 Mon Sep 17 00:00:00 2001 From: Agata Drozdek Date: Tue, 2 Apr 2019 12:26:17 +0200 Subject: [PATCH] Fixed not passing full configuration for email. --- .../Rule/Action/Order/StoreMailActionProcessor.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CoreShop/Component/Core/Notification/Rule/Action/Order/StoreMailActionProcessor.php b/src/CoreShop/Component/Core/Notification/Rule/Action/Order/StoreMailActionProcessor.php index ff8576c49e..bde606d1b2 100644 --- a/src/CoreShop/Component/Core/Notification/Rule/Action/Order/StoreMailActionProcessor.php +++ b/src/CoreShop/Component/Core/Notification/Rule/Action/Order/StoreMailActionProcessor.php @@ -55,9 +55,10 @@ public function apply($subject, NotificationRuleInterface $rule, array $configur } if (array_key_exists($store->getId(), $mails)) { - $this->mailActionProcessor->apply($subject, $rule, [ - 'mails' => $mails[$store->getId()], - ], $params); + $subConfiguration = $configuration; + $subConfiguration['mails'] = $mails[$store->getId()]; + + $this->mailActionProcessor->apply($subject, $rule, $subConfiguration, $params); } } }