MDL-61937 mod_data: Correct rating export args in privacy
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 7 May 2018 01:28:50 +0000 (09:28 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 7 May 2018 01:28:54 +0000 (09:28 +0800)
mod/data/classes/privacy/provider.php

index 5500806..34d55ab 100644 (file)
@@ -294,7 +294,7 @@ class provider implements
             [$recordobj->id], $recordobj->userid != $user->id);
         // Export ratings. For records that were not made by this user export only this user's ratings, for own records
         // export ratings from everybody.
-        \core_rating\privacy\provider::export_area_ratings($user->id, $context, [$recordobj->id], 'entry',
+        \core_rating\privacy\provider::export_area_ratings($user->id, $context, [$recordobj->id], 'mod_data', 'entry',
             $recordobj->id, $recordobj->userid != $user->id);
     }