Skip to content

Commit

Permalink
Merge branch 'pr-759' into release-week-11
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Mar 19, 2024
2 parents fa60d53 + 69740a6 commit 2c74bb9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Model/Adminhtml/Backend/ChangeApiMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions Service/Magento/PaymentLinkUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function execute(int $orderId): string

return $this->urlBuilder->getUrl('mollie/checkout/paymentlink', [
'order' => $orderId,
'_scope' => $order->getStoreId()
]);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<default>
<payment>
<mollie_general>
<version>v2.35.0</version>
<version>v2.35.1</version>
<active>0</active>
<enabled>0</enabled>
<type>test</type>
Expand Down

0 comments on commit 2c74bb9

Please sign in to comment.