diff --git a/app/code/Magento/Config/Model/Config/PathValidator.php b/app/code/Magento/Config/Model/Config/PathValidator.php index bc4f863b7b05f..dc4029e6b4dca 100644 --- a/app/code/Magento/Config/Model/Config/PathValidator.php +++ b/app/code/Magento/Config/Model/Config/PathValidator.php @@ -40,6 +40,11 @@ public function __construct(Structure $structure) */ public function validate($path) { + $element = $this->structure->getElementByConfigPath($path); + if ($element->getConfigPath()) { + $path = $element->getConfigPath(); + } + $allPaths = $this->structure->getFieldPaths(); if (!array_key_exists($path, $allPaths)) {