From c04b01f46f3289515d88170b6ab0aefdbbd5024f Mon Sep 17 00:00:00 2001 From: "Andrew Davis (andyjdavis)" Date: Tue, 16 Aug 2011 17:08:47 +0800 Subject: [PATCH] MDL-27640 rating: altered the return url provided by mod_data to ratings --- mod/data/view.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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);