diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 23b647b322..c7729dc3b4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-11-04 Junichi Satoh + + * godmode/agentes/planned_downtime.editor.php: Fixed that time range + of once planned downtime cannot be changed. + 2012-11-04 Junichi Satoh * godmode/agentes/planned_downtime.list.php: Improved to show time diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index fd245c4083..ed846264a7 100755 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -46,10 +46,10 @@ $id_agent = get_parameter ("id_agent"); $id_group = (int) get_parameter ("id_group", 0); $name = (string) get_parameter ('name', ''); $description = (string) get_parameter ('description', ''); -$once_date_from = (string) get_parameter ('date_from', date ('Y-m-j')); -$once_time_from = (string) get_parameter ('time_from', date ('h:iA')); -$once_date_to = (string) get_parameter ('date_to', date ('Y-m-j')); -$once_time_to = (string) get_parameter ('time_to', date ('h:iA')); +$once_date_from = (string) get_parameter ('once_date_from', date ('Y-m-j')); +$once_time_from = (string) get_parameter ('once_time_from', date ('h:iA')); +$once_date_to = (string) get_parameter ('once_date_to', date ('Y-m-j')); +$once_time_to = (string) get_parameter ('once_time_to', date ('h:iA')); $periodically_day_from = (int) get_parameter ('periodically_day_from', 1); $periodically_day_to = (int) get_parameter ('periodically_day_to', 31); $periodically_time_from = (string) get_parameter ('periodically_time_from', date ('h:iA')); @@ -290,10 +290,10 @@ if ($id_downtime > 0) { $result = db_get_row_sql ($sql); $name = $result["name"]; $description = $result["description"]; - $date_from = strftime ('%Y-%m-%d', $result["date_from"]); - $date_to = strftime ('%Y-%m-%d', $result["date_to"]); - $time_from = strftime ('%I:%M%p', $result["date_from"]); - $time_to = strftime ('%I:%M%p', $result["date_to"]); + $once_date_from = strftime ('%Y-%m-%d', $result["date_from"]); + $once_date_to = strftime ('%Y-%m-%d', $result["date_to"]); + $once_time_from = strftime ('%I:%M%p', $result["date_from"]); + $once_time_to = strftime ('%I:%M%p', $result["date_to"]); $monday = $result['monday']; $tuesday = $result['tuesday']; $wednesday = $result['wednesday']; @@ -937,4 +937,4 @@ ui_require_jquery_file ("ui-timepicker-addon"); $(this).css ("width", "180px"); }); }); - \ No newline at end of file +