release 1.16.1 (#2938)
* optional csrf token name * fix regression when selecting all projects as super user * prevent invalid sql
This commit is contained in:
@@ -372,7 +372,9 @@ class ProjectRepository extends EntityRepository
|
||||
// begin > from and end < to
|
||||
// ... and more ...
|
||||
$times = $this->addProjectStartAndEndDate($qb, $query->getProjectStart(), $query->getProjectEnd());
|
||||
$qb->andWhere($times);
|
||||
if ($times->count() > 0) {
|
||||
$qb->andWhere($times);
|
||||
}
|
||||
|
||||
$this->addPermissionCriteria($qb, $query->getCurrentUser());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user