Unveil hidden downtime in checkable detail view

Case: there are no comments, one downtime and you may not schedule additional ones.

Before: downtime is not shown in checkable detail view.

After: downtime is shown in checkable detail view.
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-08-04 11:56:50 +02:00 committed by Johannes Meyer
parent 62d7ca8e97
commit ad827395af
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if ($this->hasPermission('monitoring/command/downtime/schedule')) {
);
}
}
if (empty($object->comments) && ! $addLink) {
if (empty($object->downtimes) && ! $addLink) {
return;
}
?>