MDL-63919 privacy: Store the creation method of the data request
authorMihail Geshoski <mihail@moodle.com>
Thu, 8 Nov 2018 06:13:31 +0000 (14:13 +0800)
committerMihail Geshoski <mihail@moodle.com>
Thu, 8 Nov 2018 06:13:31 +0000 (14:13 +0800)
admin/tool/dataprivacy/classes/api.php

index 10889a9..5c08f5f 100644 (file)
@@ -253,6 +253,8 @@ class api {
         $datarequest->set('type', $type);
         // Set request comments.
         $datarequest->set('comments', $comments);
+        // Set the creation method.
+        $datarequest->set('creationmethod', $creationmethod);
 
         // Store subject access request.
         $datarequest->create();