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.
1 parent 3e5f770 commit 15fdb0eCopy full SHA for 15fdb0e
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