Fix module edidtion on alerts only planned downtime

This commit is contained in:
Calvo 2022-01-03 11:42:06 +01:00
parent 31885b1ca9
commit d8ab5c1e7f

View File

@ -946,9 +946,7 @@ if (empty($downtimes_agents)) {
if (!$running) {
$data[5] = '';
if ($type_downtime != 'disable_agents_alerts'
&& $type_downtime != 'disable_agents'
) {
if ($type_downtime !== 'disable_agents') {
$data[5] = '<a href="javascript:show_editor_module('.$downtime_agent['id_agente'].');">'.html_print_image('images/config.png', true, ['border' => '0', 'alt' => __('Delete'), 'class' => 'invert_filter']).'</a>';
}