mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'wip-MDL-33603-master-v2' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
584c219edf
1 changed files with 6 additions and 2 deletions
|
@ -613,8 +613,12 @@ if ($showactivity) {
|
|||
if ($record) { // We need to just show one, so where is it in context?
|
||||
$nowperpage = 1;
|
||||
$mode = 'single';
|
||||
$page = (int)array_search($record->id, $recordids);
|
||||
|
||||
$page = 0;
|
||||
// TODO MDL-33797 - Reduce this or consider redesigning the paging system.
|
||||
if ($allrecordids = $DB->get_fieldset_sql($sqlselect, $allparams)) {
|
||||
$page = (int)array_search($record->id, $allrecordids);
|
||||
unset($allrecordids);
|
||||
}
|
||||
} else if ($mode == 'single') { // We rely on ambient $page settings
|
||||
$nowperpage = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue