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.
(cherry picked from commit ad827395af42f033982a814f982f7875b9915e6d)
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-08-04 11:56:50 +02:00 committed by Johannes Meyer
parent 7be2e554af
commit 893f7d4bf4

View File

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