Fixes #17341: Fixed error from yii.activeForm.js in strict mode

This commit is contained in:
Michael Härtl
2019-06-06 16:08:00 +02:00
committed by Alexander Makarov
parent 869c8aa220
commit 3297f207f5
2 changed files with 3 additions and 3 deletions

View File

@ -706,9 +706,9 @@
}
if (submitting) {
var errorAttributes = [];
var $input = findInput($form, this);
var errorAttributes = [], $input;
$.each(data.attributes, function () {
$input = findInput($form, this);
if (!$input.is(":disabled") && !this.cancelled && updateInput($form, this, messages)) {
errorAttributes.push(this);
}