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.
1 parent c1200b2 commit 644ffcdCopy full SHA for 644ffcd
app/code/Magento/Rule/Model/Condition/AbstractCondition.php
@@ -885,10 +885,8 @@ public function validateAttribute($validatedValue)
885
*/
886
protected function _compareValues($validatedValue, $value, $strict = true)
887
{
888
- if (null === $value || null === $validatedValue) {
889
- return $value == $validatedValue;
890
- }
891
- if ($strict && is_numeric($validatedValue) && is_numeric($value)) {
+ if (null === $value || null === $validatedValue ||
+ $strict && is_numeric($validatedValue) && is_numeric($value)) {
892
return $validatedValue == $value;
893
}
894
0 commit comments