Skip to content

Commit 3f1de00

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 fb4d381 commit 3f1de00

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private function addUseDefaultValueCheckbox(Category $category, array $meta)
194194
&& $category->getStoreId();
195195
$attributePath = $this->getArrayManager()->findPath($attributeCode, $meta);
196196

197-
if (!$attributePath || !$canDisplayUseDefault || $attribute->getFrontendInput() === 'image') {
197+
if (!$attributePath || !$canDisplayUseDefault) {
198198
continue;
199199
}
200200

@@ -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)