Skip to content

Commit ad68105

Browse files
Fix SKU limit in import new products for 2.3 with backward compatible allow 64 characters for SKU
1 parent a10f074 commit ad68105

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function textValidation($attrCode, $type)
7171
if ($type == 'text') {
7272
$valid = $this->string->strlen($val) < Product::DB_MAX_TEXT_LENGTH;
7373
} else if ($attrCode == Product::COL_SKU) {
74-
$valid = $this->string->strlen($val) < SKU::SKU_MAX_LENGTH;
74+
$valid = $this->string->strlen($val) <= SKU::SKU_MAX_LENGTH;
7575
} else {
7676
$valid = $this->string->strlen($val) < Product::DB_MAX_VARCHAR_LENGTH;
7777
}

0 commit comments

Comments
 (0)