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))