diff --git a/mod/data/view.php b/mod/data/view.php index aa1e04533d0..0a2290c07ab 100644 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -655,10 +655,13 @@ if ($showactivity) { echo $OUTPUT->notification(get_string('foundrecords', 'data', $a), 'notifysuccess'); } - if ($mode == 'single') { // Single template - $baseurl = 'view.php?d=' . $data->id . '&mode=single&'; + if ($mode == 'single') { // Single template + $baseurl = 'view.php?d=' . $data->id . '&mode=single&'; if (!empty($search)) { - $baseurl .= 'filter=1&'; + $baseurl .= 'filter=1&'; + } + if (!empty($page)) { + $baseurl .= 'page=' . $page; } echo $OUTPUT->paging_bar($totalcount, $page, $nowperpage, $baseurl);