Skip to content

Commit 644ffcd

Browse files
committed
MC-18057: Product doesn'y match by "Date" attribute condition
1 parent c1200b2 commit 644ffcd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/Rule/Model/Condition/AbstractCondition.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,10 +885,8 @@ public function validateAttribute($validatedValue)
885885
*/
886886
protected function _compareValues($validatedValue, $value, $strict = true)
887887
{
888-
if (null === $value || null === $validatedValue) {
889-
return $value == $validatedValue;
890-
}
891-
if ($strict && is_numeric($validatedValue) && is_numeric($value)) {
888+
if (null === $value || null === $validatedValue ||
889+
$strict && is_numeric($validatedValue) && is_numeric($value)) {
892890
return $validatedValue == $value;
893891
}
894892

0 commit comments

Comments
 (0)