Commit a4e88297 by Alexander Kochetov

Additional RangeValidator fixes

parent b1ba2439
......@@ -92,6 +92,11 @@ yii.validation = (function ($) {
return;
}
if (!options.allowArray && $.isArray(value)) {
pub.addMessage(messages, options.message, value);
return;
}
var inArray = true;
$.each(value, function(i, v) {
......
......@@ -94,6 +94,9 @@ class RangeValidator extends Validator
if ($this->skipOnEmpty) {
$options['skipOnEmpty'] = 1;
}
if ($this->allowArray) {
$options['allowArray'] = 1;
}
ValidationAsset::register($view);
......
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