Commit 5602e7f9 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5178 Migrating gotoMode into fdMode

parent 6f92dd1c
......@@ -1413,7 +1413,12 @@ sub migrate_systems {
}
$entry->replace("objectClass" => \@replace);
if ($entry->exists('gotoMode')) {
$entry->add('fdMode' => $entry->get_value('gotoMode'));
my $gotoMode = $entry->get_value('gotoMode');
if ($gotoMode eq 'locked') {
$entry->add('fdMode' => 'locked');
} else {
$entry->add('fdMode' => 'unlocked');
}
$entry->delete('gotoMode');
}
$mesg = $ldap->add($entry);
......
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