Commit b014a7bd by Marius Kubrakov

Fix for comparing numeric attributes in JavaScript

parent 6d2a371f
......@@ -203,16 +203,16 @@ yii.validation = (function ($) {
valid = value !== compareValue;
break;
case '>':
valid = value > compareValue;
break;
case '>=':
valid = value >= compareValue;
break;
case '<':
valid = value < compareValue;
break;
case '<=':
valid = value <= compareValue;
valid = value > parseFloat(compareValue);
break;
case '>=':
valid = value >= parseFloat(compareValue);
break;
case '<':
valid = value < parseFloat(compareValue);
break;
case '<=':
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