Commit 0f5a0f71 authored by Robert Lyon's avatar Robert Lyon

Bug 1837660: Need to return id to do subsequent query

So that the correct user is fetched

behatnotneeded

Change-Id: I59bb680f7b450bf2fb40256a44fae4a2413590f2
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 99cab791)
parent 70c569d3
......@@ -1328,7 +1328,7 @@ class AuthLdap extends Auth {
if (
($d1 = get_record('usr', 'email', $todb->email))
||
($d2 = record_exists('artefact_internal_profile_email', 'email', $todb->email))
($d2 = get_record('artefact_internal_profile_email', 'email', $todb->email))
) {
if (empty($d1)) {
$d1 = get_record('usr', 'id', $d2->owner);
......
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