MDL-61937 mod_data: Target the correct area
authorDavid Monllao <davidm@moodle.com>
Fri, 4 May 2018 09:55:25 +0000 (11:55 +0200)
committerDavid Monllao <davidm@moodle.com>
Fri, 4 May 2018 09:55:25 +0000 (11:55 +0200)
mod/data/classes/privacy/provider.php

index 5500806..38a6cfd 100644 (file)
@@ -436,7 +436,7 @@ class provider implements
         // Delete tags.
         \core_tag\privacy\provider::delete_item_tags_select($context, 'mod_data', 'data_records', $sql, $params);
         // Delete comments.
-        \core_comment\privacy\provider::delete_comments_for_all_users_select($context, 'mod_data', 'entry', $sql, $params);
+        \core_comment\privacy\provider::delete_comments_for_all_users_select($context, 'mod_data', 'database_entry', $sql, $params);
         // Delete ratings.
         \core_rating\privacy\provider::delete_ratings_select($context, 'mod_data', 'entry', $sql, $params);