diff --git a/htdocs/web_portal/controllers/downtime/downtime_utils.php b/htdocs/web_portal/controllers/downtime/downtime_utils.php index 9701a9945..b85cce426 100644 --- a/htdocs/web_portal/controllers/downtime/downtime_utils.php +++ b/htdocs/web_portal/controllers/downtime/downtime_utils.php @@ -44,6 +44,12 @@ function endpointToServiceMapping($impactedIDs) * sort between endpoints and services using the prepended letter. */ foreach ($impactedIDs as $id) { + /** + * `$siteNumber` => It's about Site ID + * `$parentService` => It's about service ID endpoint belongs too + * `idType` => It's about to differentiate + * the endpoint vs service selection. + */ list($siteNumber, $parentService, $idType) = explode(':', $id); $type = strpos($idType, 's') !== false ? 'services' : 'endpoints';