Commit c88da318 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1639049: Adding the {} to the table names for this upgrade



Oversight on initial patch - should have been picked up in testing

behatnotneeded

Change-Id: I940e1792a2843cda3569a771758a7e98a802a2bf
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent b3ec929e
......@@ -4768,9 +4768,9 @@ function xmldb_core_upgrade($oldversion=0) {
if ($results = get_records_sql_array("SELECT u.id, u.email AS usr_email,
a.id AS artefactid, a.title AS artefact_email,
ae.email as artefact_internal_profile_email, ae.principal
FROM usr u
JOIN artefact a ON a.owner = u.id
JOIN artefact_internal_profile_email ae ON (ae.owner = u.id and ae.artefact = a.id)
FROM {usr} u
JOIN {artefact} a ON a.owner = u.id
JOIN {artefact_internal_profile_email} ae ON (ae.owner = u.id and ae.artefact = a.id)
WHERE a.artefacttype = 'email' AND (u.email = ? OR a.title = ?)",
array('admin@example.org', 'admin@example.org'))) {
foreach ($results as $result) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment