From b1d703bff3e33c37e39579587f6040bbd92b4e8b Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 6 Apr 2020 14:07:42 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B01671=20Portal:=20Fix=20Aggregate=20Brick?= =?UTF-8?q?=20when=20user=20profile=20is=20not=20allowed=20to=20see=20one?= =?UTF-8?q?=20of=20the=20sub-brick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/aggregatepagebrickcontroller.class.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 +}