From b86aa93a423a1940087b231439aff8ef74cdb52b Mon Sep 17 00:00:00 2001 From: Guillaume Heurtier <guillaume.heurtier@maarch.org> Date: Wed, 16 Oct 2019 16:07:06 +0200 Subject: [PATCH] FEAT #12016 TIME 0:30 fixed bug folder moved into folder stays root --- src/app/folder/controllers/FolderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/folder/controllers/FolderController.php b/src/app/folder/controllers/FolderController.php index a2c5f7839cc..611fa523b27 100755 --- a/src/app/folder/controllers/FolderController.php +++ b/src/app/folder/controllers/FolderController.php @@ -209,7 +209,7 @@ class FolderController $level = 0; } else { $folderParent = FolderModel::getById(['id' => $data['parent_id'], 'select' => ['folders.id', 'parent_id', 'level']]); - $level = $folderParent[0]['level'] + 1; + $level = $folderParent['level'] + 1; } FolderController::updateChildren($aArgs['id'], $level); -- GitLab