Skip to content

Commit a749903

Browse files
replaced separator by constant
1 parent 15ccdfd commit a749903

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
class Validator extends AbstractValidator implements RowValidatorInterface
1919
{
20+
private const DEFAULT_GLOBAL_MULTIPLE_VALUE_SEPARATOR = ',';
21+
2022
/**
2123
* @var RowValidatorInterface[]|AbstractValidator[]
2224
*/
@@ -229,7 +231,7 @@ public function isAttributeValid($attrCode, array $attrParams, array $rowData)
229231
case 'multiselect':
230232
$separator = $this->context->getMultipleValueSeparator();
231233
// added to prevent backward compatibility since before we didn't use separator param value
232-
$values = $separator === ','
234+
$values = $separator === self::DEFAULT_GLOBAL_MULTIPLE_VALUE_SEPARATOR
233235
? $this->context->parseMultiselectValues($rowData[$attrCode])
234236
: $this->context->parseMultiselectValues($rowData[$attrCode], $separator);
235237

0 commit comments

Comments
 (0)