MDL-64737 editor_atto: Fix the privacy export_user_data() implementation
authorDavid Mudrák <david@moodle.com>
Thu, 31 Jan 2019 11:28:52 +0000 (12:28 +0100)
committerDavid Mudrák <david@moodle.com>
Thu, 31 Jan 2019 11:28:52 +0000 (12:28 +0100)
commit599abfac00ce37f67f44327e289eb1227a0cdbde
tree5c3757a9262a0bbb228b7867c0b0d89237a410d7
parentc5dde62e184b654bf43f88efdce05c01af614a79
MDL-64737 editor_atto: Fix the privacy export_user_data() implementation

Multiple issues fixed:

* Fixed order of the statements to avoid access to undefined variables.
* Fixed population of the SQL query parameter to make sure they match
  the placeholder in the query.
* Fixed missing table aliases in the second query to make sure the query
  actually works as expected.
lib/editor/atto/classes/privacy/provider.php