diff --git a/datamodels/2.x/itop-portal-base/portal/src/controllers/aggregatepagebrickcontroller.class.inc.php b/datamodels/2.x/itop-portal-base/portal/src/controllers/aggregatepagebrickcontroller.class.inc.php index b9379f8df7..fe6658cd27 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/controllers/aggregatepagebrickcontroller.class.inc.php +++ b/datamodels/2.x/itop-portal-base/portal/src/controllers/aggregatepagebrickcontroller.class.inc.php @@ -21,6 +21,7 @@ namespace Combodo\iTop\Portal\Controller; use Combodo\iTop\Portal\Helper\ApplicationHelper; +use IssueLog; use Silex\Application; use Symfony\Component\HttpFoundation\Request; @@ -81,7 +82,8 @@ class AggregatePageBrickController $oPortalBrick = $this->GetBrickFromId($aPortalInstanceBricks, $sBrickId); if (!isset($oPortalBrick)) { - throw new \Exception("AggregatePageBrick : non existing brick '$sBrickId'"); + IssueLog::Warning('AggregatePageBrick: Could not display "'.$sBrickId.'", either wrong id or user profile not allowed'); + continue; } $aAggregatePageBricks[] = $oPortalBrick; } @@ -144,4 +146,4 @@ class AggregatePageBrickController return $aTilesRendering; } -} \ No newline at end of file +}