Skip to content

Commit

Permalink
fix: use all rows for querying row candidates if a filter on a not-ac…
Browse files Browse the repository at this point in the history
…cessible row is used

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Jan 24, 2024
1 parent 25d220e commit 64c5885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/RowService.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public function getRowsCount(int $tableId): int {
public function getViewRowsCount(View $view, string $userId): int {
if ($this->permissionsService->canReadRowsByElementId($view->getId(), 'view', $userId)) {
try {
return $this->row2Mapper->countRowsForView($view, $userId, $this->columnMapper->findMultiple($view->getColumnsArray()));
return $this->row2Mapper->countRowsForView($view, $userId, $this->columnMapper->findAllByTable($view->getTableId()));
} catch (Exception $e) {
$this->logger->error($e->getMessage(), ['exception' => $e]);
return 0;
Expand Down

0 comments on commit 64c5885

Please sign in to comment.