Skip to content

Commit

Permalink
[GT-187] Remove support for mutiple timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
Sae126V committed Aug 31, 2023
1 parent a87a37c commit 949e465
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htdocs/web_portal/controllers/downtime/downtime_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/web_portal/controllers/downtime/edit_downtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion htdocs/web_portal/views/downtime/confirm_add_downtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ';
Expand Down

0 comments on commit 949e465

Please sign in to comment.