We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b54b107 + 15fdb0e commit 651da5aCopy full SHA for 651da5a
app/code/Magento/Catalog/Model/Category/DataProvider.php
@@ -176,8 +176,13 @@ public function getMeta()
176
{
177
$meta = parent::getMeta();
178
$meta = $this->prepareMeta($meta);
179
- $meta = $this->addUseDefaultValueCheckbox($this->getCurrentCategory(), $meta);
180
- $meta = $this->resolveParentInheritance($this->getCurrentCategory(), $meta);
+
+ $category = $this->getCurrentCategory();
181
182
+ if ($category) {
183
+ $meta = $this->addUseDefaultValueCheckbox($category, $meta);
184
+ $meta = $this->resolveParentInheritance($category, $meta);
185
+ }
186
187
return $meta;
188
}
0 commit comments