Permalink
Browse files

Merge branch 'MDL-62397-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed May 11, 2018
2 parents b96a064 + ddb1a13 commit aaa1140d9ae3772e74b246a72ae839a2a1d0a9bf
Showing with 3 additions and 2 deletions.
  1. +3 −2 admin/tool/dataprivacy/classes/task/process_data_request_task.php
@@ -68,8 +68,9 @@ public function execute() {
$request = $requestpersistent->to_record();
// Check if this request still needs to be processed. e.g. The user might have cancelled it before this task has run.
if ($request->status != api::DATAREQUEST_STATUS_APPROVED) {
mtrace("Request {$request->id} hasn\'t been approved yet or it has already been processed. Skipping...");
$status = $requestpersistent->get('status');
if (!api::is_active($status)) {
mtrace("Request {$requestid} with status {$status} doesn't need to be processed. Skipping...");
return;
}

0 comments on commit aaa1140

Please sign in to comment.