Loading module/Oscar/src/Oscar/Controller/ProjectGrantController.php +13 −4 Changes for module/Oscar/src/Oscar/Controller/ProjectGrantController.php: 13 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -781,9 +781,15 @@ class ProjectGrantController extends AbstractOscarController { try { $page = $this->params()->fromQuery('page', 1); $search = $this->params()->fromQuery('q', ''); $search = $this->params()->fromQuery('q', null); $include = null; if( $search === null ){ $startEmpty = true; } else { $startEmpty = false; } if ($this->getOrganizationPerimeter()) { $include = $this->params()->fromQuery('include', null); Loading Loading @@ -942,7 +948,7 @@ class ProjectGrantController extends AbstractOscarController // Paramètres de la requête finale $parameters = []; $startEmpty = false; if (!$search && count($criteria) === 0) { $ids = []; Loading Loading @@ -972,9 +978,12 @@ class ProjectGrantController extends AbstractOscarController . ') OR p2.organization IN(' . $organizationsPerimeterIds . ')'); } else { } /* else { $startEmpty = true; } /****/ } else { Loading Loading @@ -1251,7 +1260,7 @@ class ProjectGrantController extends AbstractOscarController } $activities = null; if( $startEmpty == false ) { if( $startEmpty === false ) { $qbIds = $qb->select('DISTINCT c.id'); $ids = []; Loading Loading
module/Oscar/src/Oscar/Controller/ProjectGrantController.php +13 −4 Changes for module/Oscar/src/Oscar/Controller/ProjectGrantController.php: 13 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -781,9 +781,15 @@ class ProjectGrantController extends AbstractOscarController { try { $page = $this->params()->fromQuery('page', 1); $search = $this->params()->fromQuery('q', ''); $search = $this->params()->fromQuery('q', null); $include = null; if( $search === null ){ $startEmpty = true; } else { $startEmpty = false; } if ($this->getOrganizationPerimeter()) { $include = $this->params()->fromQuery('include', null); Loading Loading @@ -942,7 +948,7 @@ class ProjectGrantController extends AbstractOscarController // Paramètres de la requête finale $parameters = []; $startEmpty = false; if (!$search && count($criteria) === 0) { $ids = []; Loading Loading @@ -972,9 +978,12 @@ class ProjectGrantController extends AbstractOscarController . ') OR p2.organization IN(' . $organizationsPerimeterIds . ')'); } else { } /* else { $startEmpty = true; } /****/ } else { Loading Loading @@ -1251,7 +1260,7 @@ class ProjectGrantController extends AbstractOscarController } $activities = null; if( $startEmpty == false ) { if( $startEmpty === false ) { $qbIds = $qb->select('DISTINCT c.id'); $ids = []; Loading