From 949e465aaef13f1fe5bfe8f94dbd9534a25b3c32 Mon Sep 17 00:00:00 2001 From: Sae126V Date: Thu, 31 Aug 2023 14:22:19 +0000 Subject: [PATCH] [GT-187] Remove support for mutiple timezones --- 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 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 ';