Fix invalid type of excludedFolderIds
parent
e5c9f7799e
commit
7f0e4421b3
|
@ -215,10 +215,13 @@ trait TimelineQueryDays
|
||||||
$topFolderId = $archiveFolder ? $archiveFolder->getId() : -1;
|
$topFolderId = $archiveFolder ? $archiveFolder->getId() : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_column($conn->executeQuery($cte, [
|
return array_map('intval', array_column($conn->executeQuery($cte, [
|
||||||
'topFolderId' => $topFolderId,
|
'topFolderId' => $topFolderId,
|
||||||
'excludedFolderIds' => $excludedFolderIds,
|
'excludedFolderIds' => $excludedFolderIds,
|
||||||
])->fetchAll(), 'fileid');
|
], [
|
||||||
|
'topFolderId' => IQueryBuilder::PARAM_INT,
|
||||||
|
'excludedFolderIds' => IQueryBuilder::PARAM_INT_ARRAY,
|
||||||
|
])->fetchAll(), 'fileid'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -247,7 +250,6 @@ trait TimelineQueryDays
|
||||||
}
|
}
|
||||||
|
|
||||||
// Join with folder IDs
|
// Join with folder IDs
|
||||||
$folderIds = array_map('intval', $folderIds);
|
|
||||||
$pathQuery = $query->expr()->in('f.parent', $query->createNamedParameter($folderIds, IQueryBuilder::PARAM_INT_ARRAY));
|
$pathQuery = $query->expr()->in('f.parent', $query->createNamedParameter($folderIds, IQueryBuilder::PARAM_INT_ARRAY));
|
||||||
} else {
|
} else {
|
||||||
// If getting non-recursively folder only check for parent
|
// If getting non-recursively folder only check for parent
|
||||||
|
|
Loading…
Reference in New Issue