Skip to content

Commit b92d4e3

Browse files
author
Oleksii Korshenko
authored
MAGETWO-70838: 2.1 - Allow to use text swatch 0 #10282
2 parents eebd8f4 + 547ee36 commit b92d4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Model/Plugin/EavAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
430430
if ($this->isOptionForDelete($attribute, $optionId)) {
431431
continue;
432432
}
433-
if (empty($option[0])) {
433+
if (!isset($option[0]) || $option[0] === '') {
434434
return false;
435435
}
436436
}

0 commit comments

Comments
 (0)