Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 26aaf1d

Browse files
author
Volodymyr Kublytskyi
committed
Merge magento-partners/magento2ce#16.
2 parents 5a35b92 + 4451064 commit 26aaf1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Theme/Model/Design/Config/Validator.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ public function validate(DesignConfigInterface $designConfig)
6666
foreach ($elements as $name => $data) {
6767
// Load template object by configured template id
6868
$template = $this->templateFactory->create();
69-
$template->emulateDesign($designConfig->getScopeId());
69+
$scopeId = false;
70+
if ($designConfig->getScope() == 'stores') {
71+
$scopeId = $designConfig->getScopeId();
72+
}
73+
$template->emulateDesign($scopeId);
7074
$templateId = $data['value'];
7175
if (is_numeric($templateId)) {
7276
$template->load($templateId);

0 commit comments

Comments
 (0)