Allow define time start greater than time end in weekly planed downtimes

This commit is contained in:
fbsanchez 2020-10-07 14:49:46 +02:00
parent ac47db4986
commit 5a5fb6eeea
1 changed files with 2 additions and 2 deletions

View File

@ -354,8 +354,8 @@ if ($create_downtime || $update_downtime) {
__('Not created. Error inserting data').'. '.__('The end date must be higher than the current time') __('Not created. Error inserting data').'. '.__('The end date must be higher than the current time')
); );
} else if ($type_execution == 'periodically' } else if ($type_execution == 'periodically'
&& (($type_periodicity == 'weekly' && $periodically_time_from >= $periodically_time_to) && $type_periodicity == 'monthly'
|| ($type_periodicity == 'monthly' && $periodically_day_from == $periodically_day_to && $periodically_time_from >= $periodically_time_to)) && $periodically_day_from == $periodically_day_to
) { ) {
ui_print_error_message( ui_print_error_message(
__('Not created. Error inserting data').'. '.__('The end time must be higher than the start time') __('Not created. Error inserting data').'. '.__('The end time must be higher than the start time')