From 1aae72ef383076564a557456f80e9f2f2873e81c Mon Sep 17 00:00:00 2001 From: gauquier Date: Fri, 18 Oct 2024 10:47:26 +0200 Subject: [PATCH] Fixed store action --- src/Component/Action/StoreAction.php | 32 +++------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/src/Component/Action/StoreAction.php b/src/Component/Action/StoreAction.php index decb174a..d0ccc24b 100644 --- a/src/Component/Action/StoreAction.php +++ b/src/Component/Action/StoreAction.php @@ -105,37 +105,11 @@ public function apply(array $item): array $item = $this->trueActionProcessor->process($item); } - $labels->addLocale($locale); - $labels = $labels->build(); - - if ($changeManager->hasChanges($identifier, $item, $labels)) { - // start true_action - // make changes list - $changes = $changeManager->getChanges($identifier); - - $this->configuration->addLists([ - 'product_changes_fields_added' => $changes['added'], - 'product_changes_fields_deleted' => $changes['deleted'], - 'product_changes_fields_updated' => $changes['updated'], - 'product_changes_fields_all' => $changes['all'], - ]); - - // see GroupAction, get ActionProcessor, process your action(s) - if ([] !== $trueAction) { - $item = $this->trueActionProcessor->process($item); - } - - //$this->storeProduct($identifier); - } else { - // see GroupAction, get actionProcessor, process your action(s) - if ([] !== $falseAction) { - $item = $this->falseActionProcessor->process($item); - } - - // start false_action if any + // see GroupAction, get actionProcessor, process your action(s) + if ([] !== $falseAction) { + $item = $this->falseActionProcessor->process($item); } } - } return $item;