Skip to content

Commit

Permalink
Merge branch 'wip-79215-m311' into MOODLE_311_STABLE
Browse files Browse the repository at this point in the history
# Conflicts:
#	local/o365/classes/feature/usersync/main.php
  • Loading branch information
weilai-irl committed Oct 21, 2021
2 parents d9f1852 + 07552d5 commit 5075c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/feature/usersync/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public static function apply_configured_fieldmap(array $aaddata, \stdClass $user
break;
case 'preferredName':
if (!isset($aaddata[$remotefield])) {
if (stripos($user->username, '_ext_') !== false) {
if (stripos($aaddata['userPrincipalName'], '_ext_') !== false) {
$user->$localfield = $usersync->get_preferred_name($userobjectid);
}
}
Expand Down

0 comments on commit 5075c44

Please sign in to comment.