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 8521188 commit 46caa5eCopy full SHA for 46caa5e
app/code/Magento/Rule/Model/Condition/AbstractCondition.php
@@ -885,7 +885,10 @@ public function validateAttribute($validatedValue)
885
protected function _compareValues($validatedValue, $value, $strict = true)
886
{
887
if ($strict && is_numeric($validatedValue) && is_numeric($value)) {
888
- return $validatedValue === $value;
+ if (preg_match('/^0\d+$/', $validatedValue)) {
889
+ return $validatedValue === $value;
890
+ }
891
+ return $validatedValue == $value;
892
}
893
894
$validatePattern = preg_quote((string) $validatedValue, '~');
0 commit comments