Skip to content

Commit

Permalink
fix: Only skip failing table data loading instead of full failure
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Feb 15, 2024
1 parent 159d2ec commit a12dd7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Db/Row2Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ private function getFilter(IQueryBuilder &$qb, array $filterGroup): array {
$filterExpressions = [];
foreach ($filterGroup as $filter) {
$columnId = $filter['columnId'];
if (!isset($this->columns[$columnId]) && !isset($this->allColumns[$columnId])) {
throw new InternalError('No column found to build filter with for id ' . $columnId);
}
$column = $this->columns[$columnId] ?? $this->allColumns[$columnId];

// if is normal column
Expand Down
1 change: 0 additions & 1 deletion lib/Service/TableService.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public function findAll(?string $userId = null, bool $skipTableEnhancement = fal
$this->enhanceTable($table, $userId);
} catch (InternalError|PermissionError $e) {
$this->logger->error($e->getMessage(), ['exception' => $e]);
throw new InternalError(get_class($this) . ' - ' . __FUNCTION__ . ': '.$e->getMessage());
}
// if the table is shared with me, there are no other shares
// will avoid showing the shared icon in the FE nav
Expand Down

0 comments on commit a12dd7d

Please sign in to comment.