diff --git a/lib/Db/Row2Mapper.php b/lib/Db/Row2Mapper.php index 931098a2c..05ec003cd 100644 --- a/lib/Db/Row2Mapper.php +++ b/lib/Db/Row2Mapper.php @@ -353,7 +353,11 @@ private function getFilter(IQueryBuilder $qb, array $filterGroup): array { $filterExpressions = []; foreach ($filterGroup as $filter) { $columnId = $filter['columnId']; - $column = $columnId > 0 ? $this->columnMapper->find($columnId) : null; + try { + $column = $columnId > 0 ? $this->columnMapper->find($columnId) : null; + } catch (DoesNotExistException) { + $column = null; + } // Fail if the filter is for a column that is not in the list and no meta column if ($column === null && $columnId > 0) { throw new InternalError('No column found to build filter with for id ' . $columnId);