Skip to content

Commit 632dfa0

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 9b9aa9a commit 632dfa0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ define([
7272

7373
this.value(value);
7474
this.on('value', this.onUpdate.bind(this));
75+
this.isUseDefault(this.disabled());
7576

7677
return this;
7778
},

app/code/Magento/Ui/view/base/web/templates/form/element/uploader/uploader.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929

3030
<each args="data: value, as: '$file'" render="$parent.getPreviewTmpl($file)"/>
3131
</div>
32+
<render args="$data.service.template" if="$data.hasService()"/>
3233
</div>
33-
</div>
34+
</div>

0 commit comments

Comments
 (0)