We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3e2e0f + 2d840e8 commit ae65624Copy full SHA for ae65624
app/code/Magento/Catalog/Model/Product/Option/Type/Text.php
@@ -84,7 +84,7 @@ public function validateUserValue($values)
84
*/
85
public function prepareForCart()
86
{
87
- if ($this->getIsValid() && strlen($this->getUserValue()) > 0) {
+ if ($this->getIsValid() && ($this->getUserValue() !== '')) {
88
return $this->getUserValue();
89
} else {
90
return null;
0 commit comments