Skip to content

Commit 00176f5

Browse files
committed
#29174 Transport save_rewrites_history in save
* Support save_rewrites_history in save
1 parent 5307bad commit 00176f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ public function save(\Magento\Catalog\Api\Data\CategoryInterface $category)
8282
$existingData = array_diff_key($existingData, array_flip(['path', 'level', 'parent_id']));
8383
$existingData['store_id'] = $storeId;
8484

85+
if ($category->getData('save_rewrites_history', null) !== null) {
86+
$existingData['save_rewrites_history'] = $category->getData('save_rewrites_history');
87+
}
88+
8589
if ($category->getId()) {
8690
$metadata = $this->getMetadataPool()->getMetadata(
8791
CategoryInterface::class

0 commit comments

Comments
 (0)