diff --git a/framework/assets/yii.activeForm.js b/framework/assets/yii.activeForm.js index a72a05e6a2..ace419f618 100644 --- a/framework/assets/yii.activeForm.js +++ b/framework/assets/yii.activeForm.js @@ -229,7 +229,7 @@ // manually trigger the validation of the attribute with the specified ID validateAttribute: function (id) { - var attribute = methods.find(id); + var attribute = methods.find.call(this, id); if (attribute != undefined) { validateAttribute($(this), attribute, true); }