Skip to content
Snippets Groups Projects
Commit 9b9aa9a7 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 adf8fa69
Branches
No related merge requests found
......@@ -228,15 +228,15 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
*/
private function resolveParentInheritance(Category $category, array $meta)
{
// if (!$category->getParentId() || !$this->getArrayManager()->findPath('custom_use_parent_settings', $meta)) {
// return $meta;
// }
//
// $meta = $this->getArrayManager()->merge(
// [$this->getArrayManager()->findPath('custom_use_parent_settings', $meta), 'arguments/data/config'],
// $meta,
// ['visible' => false]
// );
if (!$category->getParentId() || !$this->getArrayManager()->findPath('custom_use_parent_settings', $meta)) {
return $meta;
}
$meta = $this->getArrayManager()->merge(
[$this->getArrayManager()->findPath('custom_use_parent_settings', $meta), 'arguments/data/config'],
$meta,
['visible' => false]
);
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