From e1d0c2d99168e5ed40252cf095f03def5798dbe5 Mon Sep 17 00:00:00 2001 From: vgilc Date: Mon, 19 May 2014 10:52:33 +0000 Subject: [PATCH] 2014-05-19 Vanessa Gil * godmode/agentes/planned_downtime.editor.php: Fixed the date range. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/planned_downtime.editor.php | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 92093bf38e..69d4c0a285 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-05-19 Vanessa Gil + + * godmode/agentes/planned_downtime.editor.php: Fixed + the date range. + 2014-05-19 Vanessa Gil * extras/pandoradb_migrate_5.0.x_to_5.1.postgreSQL.sql diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index c1ce80bf67..a3b5e7a47d 100755 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -152,9 +152,8 @@ if ($create_downtime || $update_downtime) { $datetime_from = strtotime ($once_date_from . ' ' . $once_time_from); $datetime_to = strtotime ($once_date_to . ' ' . $once_time_to); - - if (($type_periodicity == 'once') && - ($datetime_from >= $datetime_to)) { + + if ($datetime_from >= $datetime_to) { ui_print_error_message(__('Not created. Error inserting data' ). ': START >= END'); }