Skip to content

Commit 9b9aa9a

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 adf8fa6 commit 9b9aa9a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ private function addUseDefaultValueCheckbox(Category $category, array $meta)
228228
*/
229229
private function resolveParentInheritance(Category $category, array $meta)
230230
{
231-
// if (!$category->getParentId() || !$this->getArrayManager()->findPath('custom_use_parent_settings', $meta)) {
232-
// return $meta;
233-
// }
234-
//
235-
// $meta = $this->getArrayManager()->merge(
236-
// [$this->getArrayManager()->findPath('custom_use_parent_settings', $meta), 'arguments/data/config'],
237-
// $meta,
238-
// ['visible' => false]
239-
// );
231+
if (!$category->getParentId() || !$this->getArrayManager()->findPath('custom_use_parent_settings', $meta)) {
232+
return $meta;
233+
}
234+
235+
$meta = $this->getArrayManager()->merge(
236+
[$this->getArrayManager()->findPath('custom_use_parent_settings', $meta), 'arguments/data/config'],
237+
$meta,
238+
['visible' => false]
239+
);
240240

241241
return $meta;
242242
}

0 commit comments

Comments
 (0)