From b3dd024f90112f069b01ce09673b3a37ee9ed4bc Mon Sep 17 00:00:00 2001 From: Sae126V Date: Thu, 31 Aug 2023 14:39:03 +0000 Subject: [PATCH] [GT-187] Change Name to site ONLY --- htdocs/web_portal/controllers/downtime/add_downtime.php | 2 +- htdocs/web_portal/controllers/downtime/downtime_utils.php | 4 ++-- htdocs/web_portal/controllers/downtime/edit_downtime.php | 2 +- htdocs/web_portal/views/downtime/confirm_add_downtime.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/web_portal/controllers/downtime/add_downtime.php b/htdocs/web_portal/controllers/downtime/add_downtime.php index 1238f731d..3afc5a312 100644 --- a/htdocs/web_portal/controllers/downtime/add_downtime.php +++ b/htdocs/web_portal/controllers/downtime/add_downtime.php @@ -103,7 +103,7 @@ function submit(\User $user = null) { unset($downtimeInfo['IMPACTED_IDS']); if (!count($siteLevelDetails) > 1) { - $downtimeInfo['SINGLE_TIMEZONE'] = true; + $downtimeInfo['SINGLE_SITE'] = true; } list( diff --git a/htdocs/web_portal/controllers/downtime/downtime_utils.php b/htdocs/web_portal/controllers/downtime/downtime_utils.php index f0905c4f6..ed5fffe36 100644 --- a/htdocs/web_portal/controllers/downtime/downtime_utils.php +++ b/htdocs/web_portal/controllers/downtime/downtime_utils.php @@ -157,12 +157,12 @@ function unsetVariables($downtimeObj, $fromLocation) { if ($fromLocation == "add") { unset($downtimeObj['SERVICE_WITH_ENDPOINTS']); - unset($downtimeObj['SINGLE_TIMEZONE']); + unset($downtimeObj['SINGLE_SITE']); } else { unset($downtimeObj['DOWNTIME']['EXISTINGID']); unset($downtimeObj['isEdit']); unset($downtimeObj['SERVICE_WITH_ENDPOINTS']); - unset($downtimeObj['SINGLE_TIMEZONE']); + unset($downtimeObj['SINGLE_SITE']); } return $downtimeObj; diff --git a/htdocs/web_portal/controllers/downtime/edit_downtime.php b/htdocs/web_portal/controllers/downtime/edit_downtime.php index 3f74cb16f..4b26cc751 100644 --- a/htdocs/web_portal/controllers/downtime/edit_downtime.php +++ b/htdocs/web_portal/controllers/downtime/edit_downtime.php @@ -118,7 +118,7 @@ function submit(\User $user = null) { unset($downtimeInfo['IMPACTED_IDS']); if (!count($siteLevelDetails) > 1) { - $downtimeInfo['SINGLE_TIMEZONE'] = true; + $downtimeInfo['SINGLE_SITE'] = true; } list( diff --git a/htdocs/web_portal/views/downtime/confirm_add_downtime.php b/htdocs/web_portal/views/downtime/confirm_add_downtime.php index 255c99c28..dcaf6a5f9 100644 --- a/htdocs/web_portal/views/downtime/confirm_add_downtime.php +++ b/htdocs/web_portal/views/downtime/confirm_add_downtime.php @@ -21,7 +21,7 @@ echo 'Please review your '; if (!($edit)) { - if ($params['SINGLE_TIMEZONE']) { + if ($params['SINGLE_SITE']) { echo 'chosen site and the downtime '; } else { echo 'chosen sites and their downtimes ';