MDL-27640 rating: altered the return url provided by mod_data to ratings
authorAndrew Davis (andyjdavis) <andrew@moodle.com>
Tue, 16 Aug 2011 09:08:47 +0000 (17:08 +0800)
committerAparup Banerjee <aparup@moodle.com>
Mon, 3 Oct 2011 07:17:27 +0000 (15:17 +0800)
mod/data/view.php

index aa1e045..0a2290c 100644 (file)
@@ -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 . '&amp;mode=single&amp;';
+            if ($mode == 'single') { // Single template
+                $baseurl = 'view.php?d=' . $data->id . '&mode=single&';
                 if (!empty($search)) {
-                    $baseurl .= 'filter=1&amp;';
+                    $baseurl .= 'filter=1&';
+                }
+                if (!empty($page)) {
+                    $baseurl .= 'page=' . $page;
                 }
                 echo $OUTPUT->paging_bar($totalcount, $page, $nowperpage, $baseurl);