From 6d1afb19833c77884fcc6c085ce3fa6f865265f8 Mon Sep 17 00:00:00 2001 From: Jisse Reitsma Date: Wed, 2 Oct 2024 20:03:17 +0200 Subject: [PATCH 1/2] Send mail by using the configured email address --- CHANGELOG.md | 4 ++++ Cron/CheckRunner.php | 2 +- composer.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 964bbf1..9bc7ecc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.2.10] - 2 October 2024 +### Fixed +- Send mail by using the configured email address + ## [1.2.9] - 9 April 2024 ### Fixed - Fix calling Rate class in the Add action #2 @se-viacheslav diff --git a/Cron/CheckRunner.php b/Cron/CheckRunner.php index b18953a..5874b54 100644 --- a/Cron/CheckRunner.php +++ b/Cron/CheckRunner.php @@ -126,7 +126,7 @@ public function execute(): bool private function sendMail(string $contents) { $name = $this->scopeConfig->getValue('trans_email/ident_support/name'); - $email = $this->scopeConfig->getValue('trans_email/ident_support/email'); + $email = $this->config->email(); $templateParams = []; $templateParams['output'] = $contents; diff --git a/composer.json b/composer.json index e6608f6..bb89240 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "yireo/magento2-taxratesmanager2", "license": "OSL-3.0", "type": "magento2-module", - "version": "1.2.9", + "version": "1.2.10", "homepage": "https://www.yireo.com/software/magento-extensions/taxratesmanager2", "description": "Manage EU VAT rates automatically", "keywords": [ From 2ad147b74303370ed5b7ad1149de649cb767fea4 Mon Sep 17 00:00:00 2001 From: Jisse Reitsma Date: Wed, 2 Oct 2024 20:04:13 +0200 Subject: [PATCH 2/2] Remove PHPStan ignore --- Observer/Backend/Controller/ActionPredispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Observer/Backend/Controller/ActionPredispatch.php b/Observer/Backend/Controller/ActionPredispatch.php index cb1e232..195d890 100644 --- a/Observer/Backend/Controller/ActionPredispatch.php +++ b/Observer/Backend/Controller/ActionPredispatch.php @@ -59,7 +59,7 @@ public function execute( return $this; } - $controllerName = $this->request->getControllerName(); // @phpstan-ignore-line + $controllerName = $this->request->getControllerName(); if ($controllerName !== 'rate') { return $this; }