From f7031be51c30d0d65712878104ec27669d835440 Mon Sep 17 00:00:00 2001 From: torreytsui Date: Thu, 24 Nov 2016 13:15:23 +0000 Subject: [PATCH] Fix nested var not identified in view.xml --- lib/internal/Magento/Framework/Config/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/Config/View.php b/lib/internal/Magento/Framework/Config/View.php index d0c9af09b3dac..95d7466dabc77 100644 --- a/lib/internal/Magento/Framework/Config/View.php +++ b/lib/internal/Magento/Framework/Config/View.php @@ -152,7 +152,7 @@ protected function getIdAttributes() { $idAttributes = [ '/view/vars' => 'module', - '/view/vars/var' => 'name', + '/view/vars/(var/)*var' => 'name', '/view/exclude/item' => ['type', 'item'], ]; foreach ($this->xpath as $attribute) {