mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 03:26:36 +08:00
committed by
Alexander Makarov
parent
0fcd495583
commit
e6d7881bbe
@ -6,6 +6,7 @@ Yii Framework 2 Change Log
|
|||||||
|
|
||||||
- Enh #17382: Added `\yii\validators\DateValidator::$strictDateFormat` to enable strict validation (alexkart)
|
- Enh #17382: Added `\yii\validators\DateValidator::$strictDateFormat` to enable strict validation (alexkart)
|
||||||
- Bug #16394: Fixed issues in `migrate/create` when specifying default values with colons and adding multiple columns (alexkart)
|
- Bug #16394: Fixed issues in `migrate/create` when specifying default values with colons and adding multiple columns (alexkart)
|
||||||
|
- Bug #17341: Re-added fix for error from yii.activeForm.js in strict mode (mikehaertl)
|
||||||
|
|
||||||
|
|
||||||
2.0.21 June 18, 2019
|
2.0.21 June 18, 2019
|
||||||
|
|||||||
@ -705,10 +705,10 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var errorAttributes = [];
|
var errorAttributes = [], $input;
|
||||||
var $input = findInput($form, this);
|
|
||||||
$.each(data.attributes, function () {
|
$.each(data.attributes, function () {
|
||||||
var hasError = (submitting && updateInput($form, this, messages)) || (!submitting && attrHasError($form, this, messages));
|
var hasError = (submitting && updateInput($form, this, messages)) || (!submitting && attrHasError($form, this, messages));
|
||||||
|
$input = findInput($form, this);
|
||||||
|
|
||||||
if (!$input.is(":disabled") && !this.cancelled && hasError) {
|
if (!$input.is(":disabled") && !this.cancelled && hasError) {
|
||||||
errorAttributes.push(this);
|
errorAttributes.push(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user