Skip to content

Commit c7b5a73

Browse files
authored
Allow configuration paths based on system.xml
Resolves #27678
1 parent 63434d2 commit c7b5a73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Config/Model/Config/PathValidator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public function __construct(Structure $structure)
4040
*/
4141
public function validate($path)
4242
{
43+
$element = $this->structure->getElementByConfigPath($path);
44+
if ($element->getConfigPath()) {
45+
$path = $element->getConfigPath();
46+
}
47+
4348
$allPaths = $this->structure->getFieldPaths();
4449

4550
if (!array_key_exists($path, $allPaths)) {

0 commit comments

Comments
 (0)