Skip to content

Commit 547ee36

Browse files
author
Oleksii Korshenko
committed
MAGETWO-70838: 2.1 - Allow to use text swatch 0 #10282
- Merge Pull Request #10282 from ihor-sviziev/magento2:allow-to-use-text-swatch-0 - Merged commits: 1. 2b46c8a 2. bc8877a
2 parents eebd8f4 + bc8877a commit 547ee36

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)