Skip to content

Commit 8db836b

Browse files
author
Tadhg Bowe
committed
import-export-improvements #82 : configurable variations - not a super attribute error message improvements - code styling Travis CI build fixes
1 parent b98f417 commit 8db836b

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type

1 file changed

+2
-3
lines changed

Diff for: app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private function identifySuperAttributeError($superAttrCode, $rowNum)
336336

337337
// Does this attribute code exist?
338338
$sourceAttribute = $this->doesSuperAttributeExist($superAttrCode);
339-
if (!is_null($sourceAttribute)) {
339+
if (is_array($sourceAttribute)) {
340340
$codeExists = true;
341341
// Does attribute have the correct settings?
342342
if (isset($sourceAttribute['is_global']) && $sourceAttribute['is_global'] !== '1') {
@@ -374,8 +374,7 @@ function ($element) use ($superAttrCode) {
374374
);
375375

376376
// Return the first element of the filtered array (if found).
377-
if (count($filteredAttribute))
378-
{
377+
if (count($filteredAttribute)) {
379378
$returnAttributeArray = array_shift($filteredAttribute);
380379
}
381380
}

0 commit comments

Comments
 (0)