mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
Merge branch 'MDL-62397-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
aaa1140d9a
@ -68,8 +68,9 @@ class process_data_request_task extends adhoc_task {
|
||||
$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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user