Skip to content

Commit

Permalink
Backend model prevents saving container ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Dec 13, 2022
1 parent 774664a commit 3f5b474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Model/Config/Backend/ContainerId.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class ContainerId extends Value
{
public function beforeSave()
{
if ($this->validate()) {
throw new InvalidConfig('Invalid container ID. It should start with "GTM-"');
if (false === $this->validate()) {
throw new InvalidConfig('Invalid container ID "' . $this->getValue() . '". It should start with "GTM-"');
}

return parent::beforeSave();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yireo/magento2-googletagmanager2",
"version": "3.0.0",
"version": "3.0.1",
"license": "OSL-3.0",
"type": "magento2-module",
"homepage": "https://www.yireo.com/software/magento-extensions/googletagmanager2",
Expand Down

0 comments on commit 3f5b474

Please sign in to comment.