Skip to content

Commit 688bd64

Browse files
author
Anna Bukatar
committed
ACP2E-1875: Products incorrectly showed Out of Stock then all products show in stock
1 parent 25544f2 commit 688bd64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/ImportExport/Plugin/DeferCacheCleaningUntilImportIsComplete.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ public function beforeImportSource(Import $subject): void
4242
*
4343
* @param Import $subject
4444
* @param bool $result
45-
* @return void
45+
* @return bool
4646
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4747
*/
48-
public function afterImportSource(Import $subject, bool $result): void
48+
public function afterImportSource(Import $subject, bool $result): bool
4949
{
5050
$this->cacheCleaner->flush();
51+
return $result;
5152
}
5253
}

0 commit comments

Comments
 (0)