Skip to content

Commit

Permalink
PAC-894 Clean-up grouped products with 'clean-up-links' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
svizevv committed Jul 25, 2024
1 parent 56c856f commit 0a9221b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
6 changes: 3 additions & 3 deletions src/Observers/CleanUpGroupedProductRelationObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use TechDivision\Import\Observers\StateDetectorInterface;
use TechDivision\Import\Product\Grouped\Services\ProductGroupedProcessorInterface;
use TechDivision\Import\Product\Grouped\Utils\ColumnKeys;
use TechDivision\Import\Product\Grouped\Utils\ConfigurationKeys;
use TechDivision\Import\Product\Utils\ConfigurationKeys;
use TechDivision\Import\Product\Utils\MemberNames;
use TechDivision\Import\Product\Grouped\Utils\ProductTypes;
use TechDivision\Import\Product\Observers\AbstractProductImportObserver;
Expand Down Expand Up @@ -78,8 +78,8 @@ protected function process()
$subject = $this->getSubject();
$subjectConfiguration = $subject->getConfiguration();

if ($subjectConfiguration->hasParam(ConfigurationKeys::CLEAN_UP_GROUPED)
&& $subjectConfiguration->getParam(ConfigurationKeys::CLEAN_UP_GROUPED)) {
if ($subjectConfiguration->hasParam(ConfigurationKeys::CLEAN_UP_LINKS)
&& $subjectConfiguration->getParam(ConfigurationKeys::CLEAN_UP_LINKS)) {
$this->cleanUpGrouped();

$subject->getSystemLogger()->info(
Expand Down
29 changes: 0 additions & 29 deletions src/Utils/ConfigurationKeys.php

This file was deleted.

0 comments on commit 0a9221b

Please sign in to comment.