diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index 0687548eb7..844c456887 100644 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -208,7 +208,7 @@ if ($create_downtime || $update_downtime) { else if ($type_execution == 'once' && $datetime_from >= $datetime_to) { ui_print_error_message(__('Not created. Error inserting data') . ". " .__('The end date must be higher than the start date')); } - else if ($type_execution == 'once' && $datetime_to <= $now) { + else if ($type_execution == 'once' && $datetime_to <= $now && !$config["past_planned_downtimes"]) { ui_print_error_message(__('Not created. Error inserting data') . ". " .__('The end date must be higher than the current time')); } else if ($type_execution == 'periodically'