From 893f7d4bf43f899eaabcbca8bdef98f22ee3dc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Thu, 4 Aug 2022 11:56:50 +0200 Subject: [PATCH] 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) --- .../application/views/scripts/show/components/downtime.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml index d124e09ff..618d4d9ff 100644 --- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml +++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml @@ -32,7 +32,7 @@ if ($this->hasPermission('monitoring/command/downtime/schedule')) { ); } } -if (empty($object->comments) && ! $addLink) { +if (empty($object->downtimes) && ! $addLink) { return; } ?>