MDL-61899 tool_dataprivacy: Fetch context ids to update then update
commit6f094d4940c14c0616ac860c9f64a490b11c28d4
authorJun Pataleta <jun@moodle.com>
Tue, 10 Apr 2018 04:12:37 +0000 (10 12:12 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 18 Apr 2018 16:15:19 +0000 (18 18:15 +0200)
treed5d04a98fea9d2c3635010fcde681ece3e0847f1
parentcb775057fdca4ee5e906fbefef94187994789e3c
MDL-61899 tool_dataprivacy: Fetch context ids to update then update

Fetch the context ids to be updated first before performing the update
to the contextlist_context table to avoid using subquery that causes
cross DB compatibility issues.
admin/tool/dataprivacy/classes/api.php