Skip to content

Commit cab3a07

Browse files
committed
leading zeros doesn't accountable in the cart for the cart price rule issue fixed
1 parent 88660e7 commit cab3a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public function validateAttribute($validatedValue)
886886
protected function _compareValues($validatedValue, $value, $strict = true)
887887
{
888888
if ($strict && is_numeric($validatedValue) && is_numeric($value)) {
889-
return $validatedValue == $value;
889+
return $validatedValue === $value;
890890
}
891891

892892
$validatePattern = preg_quote((string) $validatedValue, '~');

0 commit comments

Comments
 (0)