Commit 0d2995f7 by Carsten Brandt

Merge pull request #3368 from technixp/master

Fix for comparing numeric attributes in JavaScript
parents 03f9ac86 ef188b2c
......@@ -24,6 +24,7 @@ Yii Framework 2 Change Log
- Bug #3268: Fixed the bug that the schema name in a table name was not respected by `yii\db\mysql\Schema` (terazoid, qiangxue)
- Bug #3311: Fixed the bug that `yii\di\Container::has()` did not return correct value (mgrechanik, qiangxue)
- Bug #3327: Fixed "Unable to find debug data" when logging objects with circular references (jarekkozak, samdark)
- Bug #3368: Fix for comparing numeric attributes in JavaScript (technixp)
- Enh #2264: `CookieCollection::has()` will return false for expired or removed cookies (qiangxue)
- Enh #2837: Error page now shows arguments in stack trace method calls (samdark)
- Enh #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper (exromany, qiangxue)
......
......@@ -203,16 +203,16 @@ yii.validation = (function ($) {
valid = value !== compareValue;
break;
case '>':
valid = value > compareValue;
valid = value > parseFloat(compareValue);
break;
case '>=':
valid = value >= compareValue;
valid = value >= parseFloat(compareValue);
break;
case '<':
valid = value < compareValue;
valid = value < parseFloat(compareValue);
break;
case '<=':
valid = value <= compareValue;
valid = value <= parseFloat(compareValue);
break;
default:
valid = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment