Skip to content

Commit

Permalink
[GT-187] Change Name to site ONLY
Browse files Browse the repository at this point in the history
  • Loading branch information
Sae126V committed Aug 31, 2023
1 parent a87a37c commit b3dd024
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion htdocs/web_portal/controllers/downtime/add_downtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
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 b3dd024

Please sign in to comment.