Merge branch 'MDL-64194-36_block_myoverview_incorrect_pagination' of https://github.com/tomdickman/moodle into MOODLE_36_STABLE
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -499,7 +499,7 @@ function(
|
||||
}
|
||||
|
||||
// Set the last page to either the current or next page
|
||||
if (loadedPages[currentPage].courses.length < pageData.limit) {
|
||||
if (loadedPages[currentPage].courses.length < pageData.limit || !remainingCourses.length) {
|
||||
lastPage = currentPage;
|
||||
actions.allItemsLoaded(currentPage);
|
||||
} else if (loadedPages[currentPage + 1] != undefined
|
||||
|
||||
Reference in New Issue
Block a user