MDL-62989 privacy: Improve data request order for users
authorMihail Geshoski <mihail@moodle.com>
Fri, 24 Aug 2018 07:32:34 +0000 (15:32 +0800)
committerMihail Geshoski <mihail@moodle.com>
Fri, 24 Aug 2018 07:32:34 +0000 (15:32 +0800)
admin/tool/dataprivacy/mydatarequests.php

index 2568096..f435d00 100644 (file)
@@ -55,7 +55,7 @@ $PAGE->set_title($title);
 echo $OUTPUT->header();
 echo $OUTPUT->heading($title);
 
 echo $OUTPUT->header();
 echo $OUTPUT->heading($title);
 
-$requests = tool_dataprivacy\api::get_data_requests($USER->id);
+$requests = tool_dataprivacy\api::get_data_requests($USER->id, [], [], 'timecreated DESC');
 $requestlist = new tool_dataprivacy\output\my_data_requests_page($requests);
 $requestlistoutput = $PAGE->get_renderer('tool_dataprivacy');
 echo $requestlistoutput->render($requestlist);
 $requestlist = new tool_dataprivacy\output\my_data_requests_page($requests);
 $requestlistoutput = $PAGE->get_renderer('tool_dataprivacy');
 echo $requestlistoutput->render($requestlist);