Skip to content

Commit a6fa9ba

Browse files
MAGETWO-15371: view.xml file inheritance not working properly
1 parent c9a942f commit a6fa9ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Config/FileResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public function getParents($filename, $scope)
159159
*
160160
* @param ThemeInterface $theme
161161
* @param array $iterator
162+
* @param int $index
162163
* @return array
163164
*/
164165
private function getParentConfigs(ThemeInterface $theme, array $iterator, $index = 0)
@@ -176,7 +177,7 @@ private function getParentConfigs(ThemeInterface $theme, array $iterator, $index
176177

177178
$iterator[$index] = $parentDom->saveXML();
178179

179-
$iterator = $this->getParentConfigs($theme->getParentTheme(), $iterator);
180+
$iterator = $this->getParentConfigs($theme->getParentTheme(), $iterator, ++$index);
180181
}
181182

182183
return $iterator;

0 commit comments

Comments
 (0)