Skip to content

Commit

Permalink
Fix static test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kenza-ya committed Sep 6, 2023
1 parent 947ab3f commit 953b0d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Observers/AttributeOptionValueExportObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,12 @@ protected function process()
}

$adminValueArtefacts = $this->getArtefactsByTypeAndEntityId(AttributeOptionExportObserver::ARTEFACT_TYPE, $this->getLastEntityId());

if (!$this->isValidateAdminValuesWithStoreOptionValues($adminValueArtefacts, $attributeOptionValues)){
if (!$this->isValidateAdminValuesWithStoreOptionValues($adminValueArtefacts, $attributeOptionValues)) {
return;
}

// iterate over the attribute option values and export them
foreach ($attributeOptionValues as $key => $attributeOptionValue) {

// query whether or not the attribute option value is available
if (!isset($adminValueArtefacts[$key]) || empty($attributeOptionValue) || empty($adminValueArtefacts[$key])) {
continue;
Expand Down

0 comments on commit 953b0d8

Please sign in to comment.