Skip to content


Merge branch 'MDL-62397-master' of git://
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed May 11, 2018
2 parents b96a064 + ddb1a13 commit aaa1140
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -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...");

Expand Down

0 comments on commit aaa1140

Please sign in to comment.