Skip to content

Commit 15fdb0e

Browse files
MAGETWO-48516: Most of category fields don't have Use Default Value option in Store/StoreView scope on the redesigned category page
1 parent 3e5f770 commit 15fdb0e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/code/Magento/Catalog/Model/Category/DataProvider.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,13 @@ public function getMeta()
176176
{
177177
$meta = parent::getMeta();
178178
$meta = $this->prepareMeta($meta);
179-
$meta = $this->addUseDefaultValueCheckbox($this->getCurrentCategory(), $meta);
180-
$meta = $this->resolveParentInheritance($this->getCurrentCategory(), $meta);
179+
180+
$category = $this->getCurrentCategory();
181+
182+
if ($category) {
183+
$meta = $this->addUseDefaultValueCheckbox($category, $meta);
184+
$meta = $this->resolveParentInheritance($category, $meta);
185+
}
181186

182187
return $meta;
183188
}

0 commit comments

Comments
 (0)