Merge branch 'MDL-56300_master' of git://github.com/reskit/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 17 Oct 2016 16:50:07 +0000 (18:50 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 17 Oct 2016 16:50:07 +0000 (18:50 +0200)
mod/assign/amd/build/grading_navigation.min.js
mod/assign/amd/src/grading_navigation.js

index 0413e1a..002899a 100644 (file)
Binary files a/mod/assign/amd/build/grading_navigation.min.js and b/mod/assign/amd/build/grading_navigation.min.js differ
index 97087e0..0aa7a79 100644 (file)
@@ -218,7 +218,7 @@ define(['jquery', 'core/notification', 'core/str', 'core/form-autocomplete',
             if (show) {
                 this._filteredUsers[this._filteredUsers.length] = user;
                 if (userid == user.id) {
-                    foundIndex = index;
+                    foundIndex = (this._filteredUsers.length - 1);
                 }
             }
         }.bind(this));