Skip to content
Snippets Groups Projects
Commit 7cdeb718 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13537 TIME 3:00 fix migration

parent f81a53bf
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,11 @@ foreach ($customs as $custom) { ...@@ -42,7 +42,11 @@ foreach ($customs as $custom) {
$aFolderIdMap = []; $aFolderIdMap = [];
foreach ($folders as $folder) { foreach ($folders as $folder) {
$user = \User\models\UserModel::getByLogin(['select' => ['id'], 'login' => $folder['typist']]); if (empty($folder['typist'])) {
$user['id'] = $masterOwnerId;
} else {
$user = \User\models\UserModel::getByLogin(['select' => ['id'], 'login' => $folder['typist']]);
}
if (empty($folder['destination'])) { if (empty($folder['destination'])) {
// Public // Public
if (empty($user)) { if (empty($user)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment