diff --git a/enrol/cohort/yui/quickenrolment/quickenrolment.js b/enrol/cohort/yui/quickenrolment/quickenrolment.js index 7dc8ffdec04..661af045c56 100644 --- a/enrol/cohort/yui/quickenrolment/quickenrolment.js +++ b/enrol/cohort/yui/quickenrolment/quickenrolment.js @@ -292,7 +292,7 @@ YUI.add('moodle-enrol_cohort-quickenrolment', function(Y) { } else { if (result.response && result.response.message) { var alertpanel = new M.core.alert(result.response); - Y.Node.one('#id_yuialertconfirm-' + alertpanel.COUNT).focus(); + Y.Node.one('#id_yuialertconfirm-' + alertpanel.get('COUNT')).focus(); } var enrolled = Y.Node.create('