Skip to content

Commit 2b46c8a

Browse files
Corefixihor-sviziev
authored andcommitted
Allows you to have 0 as a option
Corrects validation of options, to allow you to have 0 as a value (cherry picked from commit f2c66b6)
1 parent f410914 commit 2b46c8a

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 ($option[0] === '') {
434434
return false;
435435
}
436436
}

0 commit comments

Comments
 (0)