Commit c64cc467 authored by Khalani's avatar Khalani
Browse files

Fix: export data - get_files function call of provider directed to locallib.

parent f6dbb788
Pipeline #10982 passed with stage
Showing with 3 additions and 1 deletion
+3 -1
No preview for this file type
......@@ -149,12 +149,14 @@ class provider implements \core_privacy\local\metadata\provider,
}
$user = new \stdClass();
$assign = $exportdata->get_assign();
$plugin = $assign->get_plugin_by_type('assignsubmission', 'file');
$submission = $exportdata->get_pluginobject();
error_log('Submission class type: ' . get_class($submission));
error_log('class type >>> ');
error_log(print_r(get_class($submission), true));
$files = (new self)->get_files($submission, $user);
// $files = (new self)->get_files($submission, $user);
$files = $plugin->get_files($exportdata->get_pluginobject(), $user);
foreach ($files as $file) {
$userid = $exportdata->get_pluginobject()->userid;
$dtaresultsummary = DBUtils::getresultsummaryfromdatabase($assign->id, $submission->id);
......
File deleted
File deleted
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment