Skip to content

Commit

Permalink
Bugfix: Force scope ID to be an int
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Mar 25, 2024
1 parent 950549b commit 765ef91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Adminhtml/Backend/ChangeApiMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 765ef91

Please sign in to comment.