Fix getChildren SQL query

This commit is contained in:
Marcel Klehr 2020-06-03 14:15:30 +02:00
parent 659e7cc2cc
commit 3778422113
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ class TreeMapper extends QBMapper {
$qb
->select('folder_id', 's.title', 'user_id', 'index', 't.type')
->from('bookmarks_shared_folders', 's')
->innerJoin('f', 'bookmarks_tree', 't', $qb->expr()->eq('t.id', 's.id'))
->innerJoin('s', 'bookmarks_tree', 't', $qb->expr()->eq('t.id', 's.id'))
->where($qb->expr()->eq('t.parent_folder', $qb->createPositionalParameter($folderId)))
->andWhere($qb->expr()->eq('t.type', $qb->createPositionalParameter(self::TYPE_SHARE)))
->orderBy('t.index', 'ASC');