Skip to content

Commit

Permalink
#29174 Transport save_rewrites_history in save
Browse files Browse the repository at this point in the history
* Support save_rewrites_history in save
  • Loading branch information
amenk committed Jul 20, 2020
1 parent 5307bad commit 00176f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/Catalog/Model/CategoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ public function save(\Magento\Catalog\Api\Data\CategoryInterface $category)
$existingData = array_diff_key($existingData, array_flip(['path', 'level', 'parent_id']));
$existingData['store_id'] = $storeId;

if ($category->getData('save_rewrites_history', null) !== null) {
$existingData['save_rewrites_history'] = $category->getData('save_rewrites_history');
}

if ($category->getId()) {
$metadata = $this->getMetadataPool()->getMetadata(
CategoryInterface::class
Expand Down

0 comments on commit 00176f5

Please sign in to comment.