Skip to content

Commit 25d7f72

Browse files
committed
fix counting submissions
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 26b7b03 commit 25d7f72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Db/SubmissionMapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ protected function countSubmissionsWithFilters(int $formId, ?string $userId = nu
165165
}
166166

167167
$result = $query->executeQuery();
168+
$rows = $result->fetchAll();
168169
$result->closeCursor();
169170

170-
return $result->rowCount();
171+
return count($rows);
171172
}
172173

173174
/**

0 commit comments

Comments
 (0)