Skip to content

Commit

Permalink
Fix Warning: Undefined array key when setting required attributes act…
Browse files Browse the repository at this point in the history
…ive (#39)
  • Loading branch information
pimruiter authored Feb 2, 2024
1 parent 3fab27a commit 174cad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Import/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected function getColumnsFromResult(array $result, array $keys = []): array
// This returns the result for the temp table DB columns. ex: 'name-nl_NL-ecommerce' => 'value'
$mappedResult = parent::getColumnsFromResult($result, $keys);

if (!$this->scopeConfig->getValue('akeneo_connector/justbetter/defaultstorevalues')) {
if (!$this->scopeConfig->getValue('akeneo_connector/justbetter/defaultstorevalues') || !array_key_exists('values', $result)) {
return $mappedResult;
}

Expand Down

0 comments on commit 174cad2

Please sign in to comment.