Merge branch 'ent-8363-edicion-de-paradas-planificadas' into 'develop'

Fix module edidtion on alerts only planned downtime

See merge request artica/pandorafms!4608
This commit is contained in:
Daniel Rodriguez 2022-01-05 12:33:11 +00:00
commit e1a1281985
1 changed files with 1 additions and 3 deletions

View File

@ -947,9 +947,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>';
}