From 4b42ae32e7901c91e77f739014f608fe53092cdc Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Mon, 26 Feb 2024 20:56:36 +0100 Subject: [PATCH 1/2] Bugfix: Check that the api key is available #752 --- Model/Adminhtml/Backend/ChangeApiMode.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Model/Adminhtml/Backend/ChangeApiMode.php b/Model/Adminhtml/Backend/ChangeApiMode.php index 7e632bf6229..82fc07e740f 100644 --- a/Model/Adminhtml/Backend/ChangeApiMode.php +++ b/Model/Adminhtml/Backend/ChangeApiMode.php @@ -69,7 +69,9 @@ public function beforeSave(): self public function afterSave() { $apiKey = $this->getApiKey($this->getValue()); - $this->updateProfileId->execute($apiKey, $this->getScope(), $this->getScopeId()); + if ($apiKey) { + $this->updateProfileId->execute($apiKey, $this->getScope(), $this->getScopeId()); + } return parent::afterSave(); } From 07fee1789e985879b9ee436266e00c95c257fb42 Mon Sep 17 00:00:00 2001 From: Marvin Besselsen Date: Wed, 28 Feb 2024 10:17:14 +0100 Subject: [PATCH 2/2] Version bump --- composer.json | 2 +- etc/config.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 06c364e255e..b4b61e1386a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "mollie/magento2", "description": "Mollie Payment Module for Magento 2", - "version": "2.35.0", + "version": "2.35.1", "keywords": [ "mollie", "payment", diff --git a/etc/config.xml b/etc/config.xml index 7fc0bffaf62..32a5b285514 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -3,7 +3,7 @@ - v2.35.0 + v2.35.1 0 0 test