Skip to content

Commit 9d093c9

Browse files
author
Viktor Kopin
committed
MC-37665: Updating a category through the REST API will uncheck "Use Default Value" on a bunch of attributes
1 parent fc47ae2 commit 9d093c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/CategoryRepository/PopulateWithValues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Catalog\Api\Data\CategoryInterface;
1111
use Magento\Catalog\Model\Attribute\ScopeOverriddenValue;
1212
use Magento\Catalog\Model\Category;
13-
use Magento\Eav\Api\AttributeRepositoryInterface as AttributeRepository;
13+
use Magento\Catalog\Api\CategoryAttributeRepositoryInterface as AttributeRepository;
1414
use Magento\Eav\Api\Data\AttributeInterface;
1515
use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;
1616
use Magento\Framework\Api\FilterBuilder;

dev/tests/api-functional/testsuite/Magento/Catalog/Api/CategoryRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ public function testUpdateScopeAttribute()
593593
$category,
594594
'is_active',
595595
Store::DISTRO_STORE_ID
596-
), 'is_active is overriden for default store');
596+
), 'is_active is overridden for default store');
597597
self::assertFalse($scopeOverriddenValue->containsValue(
598598
CategoryInterface::class,
599599
$category,
600600
'url_key',
601601
Store::DISTRO_STORE_ID
602-
), 'url_key is overriden for default store');
602+
), 'url_key is overridden for default store');
603603

604604
$this->deleteCategory($categoryId);
605605
}

0 commit comments

Comments
 (0)