Skip to content

Commit 8632bc5

Browse files
committed
MAGETWO-83820: [2.3.x] SKU parameter in capital letters on CSV ignored by database in Import but OK'd by validator
1 parent 3db7b88 commit 8632bc5

File tree

1 file changed

+6
-12
lines changed
  • app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type

1 file changed

+6
-12
lines changed

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,11 @@ class Configurable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
4141
* @var array
4242
*/
4343
protected $_messageTemplates = [
44-
self::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER =>
45-
'Attribute with code "%s" is not super',
46-
self::ERROR_INVALID_OPTION_VALUE =>
47-
'Invalid option value for attribute "%s"',
48-
self::ERROR_INVALID_WEBSITE =>
49-
'Invalid website code for super attribute',
50-
self::ERROR_DUPLICATED_VARIATIONS =>
51-
'SKU %s contains duplicated variations',
52-
self::ERROR_UNIDENTIFIABLE_VARIATION =>
53-
'Configurable variation "%s" is unidentifiable',
44+
self::ERROR_ATTRIBUTE_CODE_IS_NOT_SUPER => 'Attribute with code "%s" is not super',
45+
self::ERROR_INVALID_OPTION_VALUE => 'Invalid option value for attribute "%s"',
46+
self::ERROR_INVALID_WEBSITE => 'Invalid website code for super attribute',
47+
self::ERROR_DUPLICATED_VARIATIONS => 'SKU %s contains duplicated variations',
48+
self::ERROR_UNIDENTIFIABLE_VARIATION => 'Configurable variation "%s" is unidentifiable',
5449
];
5550

5651
/**
@@ -521,11 +516,10 @@ protected function _parseVariations($rowData)
521516
$position += 1;
522517
}
523518
} else {
524-
$errorCode = self::ERROR_UNIDENTIFIABLE_VARIATION;
525519
throw new LocalizedException(
526520
__(
527521
sprintf(
528-
$this->_messageTemplates[$errorCode],
522+
$this->_messageTemplates[self::ERROR_UNIDENTIFIABLE_VARIATION],
529523
$variation
530524
)
531525
)

0 commit comments

Comments
 (0)