Fixed possible problems of planned downtimes (same as the last fix for Tiquet #2801).
(cherry picked from commit f02cde7af7
)
This commit is contained in:
parent
0eae3e1f33
commit
d08501a608
|
@ -1794,6 +1794,7 @@ sub pandora_planned_downtime_monthly_start($$) {
|
||||||
FROM tplanned_downtime
|
FROM tplanned_downtime
|
||||||
WHERE type_periodicity = ?
|
WHERE type_periodicity = ?
|
||||||
AND executed = 0
|
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_from = ? AND periodically_time_from <= ?) OR (periodically_day_from < ?))
|
||||||
AND ((periodically_day_to = ? AND periodically_time_to >= ?) OR (periodically_day_to > ?))',
|
AND ((periodically_day_to = ? AND periodically_time_to >= ?) OR (periodically_day_to > ?))',
|
||||||
'monthly', 'number_day_month',
|
'monthly', 'number_day_month',
|
||||||
|
|
Loading…
Reference in New Issue