2014-06-04 Vanessa Gil <vanessa.gil@artica.es>

* godmode/agentes/planned_downtime.editor.php: Check
	creation date in scheduled downtime.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10102 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2014-06-04 07:36:28 +00:00
parent 1d8d749872
commit d4edf44dcc
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-06-04 Vanessa Gil <vanessa.gil@artica.es>
* godmode/agentes/planned_downtime.editor.php: Check
creation date in scheduled downtime.
2014-06-04 Sergio Martin <sergio.martin@artica.es>
* extras/pandoradb_migrate_5.0.x_to_5.1.postgreSQL.sql

View File

@ -152,8 +152,12 @@ if ($create_downtime || $update_downtime) {
$datetime_from = strtotime ($once_date_from . ' ' . $once_time_from);
$datetime_to = strtotime ($once_date_to . ' ' . $once_time_to);
$now = strtotime(date(DATE_FORMAT). ' ' . date(TIME_FORMAT));
if ($datetime_from >= $datetime_to) {
if ($datetime_from < $now) {
ui_print_error_message(__('Not created. Error inserting data. Start time must be higher than the current time' ));
}
else if ($datetime_from >= $datetime_to) {
ui_print_error_message(__('Not created. Error inserting data' ).
': START &gt;= END');
}