mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Profile fields to be synced via MNet now respect the 'use defaults' option
This commit is contained in:
parent
19414fa47b
commit
13b78fda00
@ -859,7 +859,7 @@ function mnet_fields_to_import(mnet_peer $peer) {
|
||||
function _mnet_field_helper(mnet_peer $peer, $key) {
|
||||
$tmp = mnet_profile_field_options();
|
||||
$defaults = explode(',', get_config('moodle', 'mnetprofile' . $key . 'fields'));
|
||||
if (1 === get_config('mnet', 'host' . $peer->id . $key . 'default')) {
|
||||
if ('1' === get_config('mnet', 'host' . $peer->id . $key . 'default')) {
|
||||
return array_merge($tmp['forced'], $defaults);
|
||||
}
|
||||
$hostsettings = get_config('mnet', 'host' . $peer->id . $key . 'fields');
|
||||
|
Loading…
x
Reference in New Issue
Block a user