fix broken sql in activity admin (#506)

* fix broken sql in activity admin
* pre-select customer for existing activities
This commit is contained in:
Kevin Papst
2019-01-18 14:30:20 +01:00
committed by GitHub
parent b5c4084452
commit 03421c099a
2 changed files with 4 additions and 1 deletions

View File

@@ -206,7 +206,9 @@ class ActivityRepository extends AbstractRepository
$qb->orderBy('a.project', 'ASC');
}
$qb->andWhere($or);
if ($or->count() > 0) {
$qb->andWhere($or);
}
return $this->getBaseQueryResult($qb, $query);
}