added toolbar to customer screen #28 (#49)

* fixed filter query #28
* fixed annotation #28
* merge message files #28
* added page size type #28
* added visibility type #28
* added filter toolbar to customer screen #28
This commit is contained in:
Kevin Papst
2018-01-07 21:42:27 +01:00
committed by GitHub
parent c5c9f37de7
commit 79e87ecdbe
17 changed files with 289 additions and 87 deletions

View File

@@ -65,10 +65,10 @@ class ProjectRepository extends AbstractRepository
->join('p.customer', 'c')
->orderBy('p.' . $query->getOrderBy(), $query->getOrder());
if ($query->getVisibility() === ProjectQuery::SHOW_VISIBLE) {
if ($query->getVisibility() == ProjectQuery::SHOW_VISIBLE) {
$qb->andWhere('p.visible = 1');
// TODO check for visibility of customer
} elseif ($query->getVisibility() === ProjectQuery::SHOW_HIDDEN) {
} elseif ($query->getVisibility() == ProjectQuery::SHOW_HIDDEN) {
$qb->andWhere('p.visible = 0');
// TODO check for visibility of customer
}