mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 22:20:00 +01:00
MDL-33603 - data - added another sql query to allow links to records to work.
This commit is contained in:
parent
85c4758c5a
commit
db79db63ed
@ -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…
x
Reference in New Issue
Block a user