From 765ef91b77fcc9345635b112209cd00e235afe55 Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Mon, 25 Mar 2024 10:57:48 +0100 Subject: [PATCH] Bugfix: Force scope ID to be an int --- Model/Adminhtml/Backend/ChangeApiMode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Adminhtml/Backend/ChangeApiMode.php b/Model/Adminhtml/Backend/ChangeApiMode.php index 82fc07e740f..c49d24bc0e5 100644 --- a/Model/Adminhtml/Backend/ChangeApiMode.php +++ b/Model/Adminhtml/Backend/ChangeApiMode.php @@ -70,7 +70,7 @@ public function afterSave() { $apiKey = $this->getApiKey($this->getValue()); if ($apiKey) { - $this->updateProfileId->execute($apiKey, $this->getScope(), $this->getScopeId()); + $this->updateProfileId->execute($apiKey, $this->getScope(), (int)$this->getScopeId()); } return parent::afterSave();