filtre de recherche sur le nom du propriétaire (ref #147)
This commit is contained in:
parent
1fc6d05bf5
commit
228993dbd6
|
@ -82,7 +82,9 @@ class GroupController extends Controller
|
|||
$qb=$em->createQueryBuilder();
|
||||
$qb->select('COUNT(table)')
|
||||
->from($this->labelentity,'table')
|
||||
->leftJoin('CadolesCoreBundle:User', 'u', 'WITH', 'table.owner = u.id')
|
||||
->where('table.label LIKE :value')
|
||||
->orWhere('u.username LIKE :value')
|
||||
->setParameter("value", "%".$search["value"]."%");
|
||||
if($access=="user") {
|
||||
$qb->from("CadolesCoreBundle:UserGroup","ug")
|
||||
|
@ -107,19 +109,21 @@ class GroupController extends Controller
|
|||
|
||||
// Parcours des Enregistrement
|
||||
$qb = $em->createQueryBuilder();
|
||||
$qb->select('table')->from($this->labelentity,'table');
|
||||
$qb ->select('table')
|
||||
->from($this->labelentity,'table')
|
||||
->leftJoin('CadolesCoreBundle:User', 'u', 'WITH', 'table.owner = u.id');
|
||||
if($access=="user") {
|
||||
$qb->from("CadolesCoreBundle:UserGroup","ug")
|
||||
->andWhere(("table.fgcanshare=:flag"))
|
||||
->andWhere("table.id=ug.group")
|
||||
->andWhere(":user=ug.user")
|
||||
->leftJoin('CadolesCoreBundle:User', 'u', 'WITH', 'table.owner = u.id')
|
||||
->setParameter("flag", true)
|
||||
->setParameter("user", $this->getUser());
|
||||
|
||||
}
|
||||
if($search["value"]!="") {
|
||||
$qb ->andwhere('table.label LIKE :value')
|
||||
->orWhere('u.username LIKE :value')
|
||||
->setParameter("value", "%".$search["value"]."%");
|
||||
}
|
||||
switch($order[0]["column"]) {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue