Skip to content
Snippets Groups Projects
Commit 632dfa04 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 9b9aa9a7
Branches
No related merge requests found
...@@ -194,7 +194,7 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider ...@@ -194,7 +194,7 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
&& $category->getStoreId(); && $category->getStoreId();
$attributePath = $this->getArrayManager()->findPath($attributeCode, $meta); $attributePath = $this->getArrayManager()->findPath($attributeCode, $meta);
if (!$attributePath || !$canDisplayUseDefault || $attribute->getFrontendInput() === 'image') { if (!$attributePath || !$canDisplayUseDefault) {
continue; continue;
} }
......
...@@ -72,6 +72,7 @@ define([ ...@@ -72,6 +72,7 @@ define([
this.value(value); this.value(value);
this.on('value', this.onUpdate.bind(this)); this.on('value', this.onUpdate.bind(this));
this.isUseDefault(this.disabled());
return this; return this;
}, },
......
...@@ -29,5 +29,6 @@ ...@@ -29,5 +29,6 @@
<each args="data: value, as: '$file'" render="$parent.getPreviewTmpl($file)"/> <each args="data: value, as: '$file'" render="$parent.getPreviewTmpl($file)"/>
</div> </div>
<render args="$data.service.template" if="$data.hasService()"/>
</div> </div>
</div> </div>
\ No newline at end of file
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