Skip to content
Snippets Groups Projects
Commit 15fdb0ef authored by Oleh Posyniak's avatar Oleh Posyniak
Browse files

MAGETWO-48516: Most of category fields don't have Use Default Value option in...

MAGETWO-48516: Most of category fields don't have Use Default Value option in Store/StoreView scope on the redesigned category page
parent 3e5f770e
No related merge requests found
...@@ -176,8 +176,13 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider ...@@ -176,8 +176,13 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
{ {
$meta = parent::getMeta(); $meta = parent::getMeta();
$meta = $this->prepareMeta($meta); $meta = $this->prepareMeta($meta);
$meta = $this->addUseDefaultValueCheckbox($this->getCurrentCategory(), $meta);
$meta = $this->resolveParentInheritance($this->getCurrentCategory(), $meta); $category = $this->getCurrentCategory();
if ($category) {
$meta = $this->addUseDefaultValueCheckbox($category, $meta);
$meta = $this->resolveParentInheritance($category, $meta);
}
return $meta; return $meta;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment