Fixed possible problems of planned downtimes (same as the last fix for Tiquet #2801).

(cherry picked from commit f02cde7af7)
This commit is contained in:
Hirofumi Kosaka 2015-10-16 16:25:01 +09:00 committed by m-lopez-f
parent c4af25cf34
commit d126fd1eb6
1 changed files with 1 additions and 0 deletions

View File

@ -1794,6 +1794,7 @@ sub pandora_planned_downtime_monthly_start($$) {
FROM tplanned_downtime
WHERE type_periodicity = ?
AND executed = 0
AND type_execution <> ' . $RDBMS_QUOTE_STRING . 'once' . $RDBMS_QUOTE_STRING . '
AND ((periodically_day_from = ? AND periodically_time_from <= ?) OR (periodically_day_from < ?))
AND ((periodically_day_to = ? AND periodically_time_to >= ?) OR (periodically_day_to > ?))',
'monthly', 'number_day_month',