From e447dd011fe8e37cac78cf22c5efeb7e2cebe131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <91878298+come-nc@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:38:21 +0100 Subject: [PATCH] Fix comment in lib/Trash/TrashManager.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Louis Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> --- lib/Trash/TrashManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Trash/TrashManager.php b/lib/Trash/TrashManager.php index f1e1e7670..4664117fd 100644 --- a/lib/Trash/TrashManager.php +++ b/lib/Trash/TrashManager.php @@ -98,7 +98,7 @@ public function updateTrashedChildren(int $fromFolderId, int $toFolderId, string $sourceLength = mb_strlen($fromLocation); $newPathFunction = $fun->concat( $query->createNamedParameter($toLocation), - $fun->substring('original_location', $query->createNamedParameter($sourceLength + 1, IQueryBuilder::PARAM_INT))// +1 for the leading slash + $fun->substring('original_location', $query->createNamedParameter($sourceLength + 1, IQueryBuilder::PARAM_INT))// +1 for the ending slash ); $query->update('group_folders_trash') ->set('folder_id', $query->createNamedParameter($toFolderId, IQueryBuilder::PARAM_INT))