Skip to content

Commit 5fd5b8b

Browse files
Merge branch '4.4' into 5.4
* 4.4: [DoctrineBridge] Treat firstResult === 0 like null [HttpKernel] Fix SessionListener without session in request #46268
2 parents f3d8c57 + 4593586 commit 5fd5b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getEntities()
5353
*/
5454
public function getEntitiesByIds(string $identifier, array $values)
5555
{
56-
if (null !== $this->queryBuilder->getMaxResults() || null !== $this->queryBuilder->getFirstResult()) {
56+
if (null !== $this->queryBuilder->getMaxResults() || 0 < (int) $this->queryBuilder->getFirstResult()) {
5757
// an offset or a limit would apply on results including the where clause with submitted id values
5858
// that could make invalid choices valid
5959
$choices = [];

0 commit comments

Comments
 (0)