Skip to content

Commit f2c66b6

Browse files
authored
Allows you to have 0 as a option
Corrects validation of options, to allow you to have 0 as a value
1 parent 0bb4d6c commit f2c66b6

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
@@ -434,7 +434,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
434434
if ($this->isOptionForDelete($attribute, $optionId)) {
435435
continue;
436436
}
437-
if (empty($option[0])) {
437+
if ($option[0] === '') {
438438
return false;
439439
}
440440
}

0 commit comments

Comments
 (0)