fixed problems with planned downtimes in Core. Tiquet: #2801

This commit is contained in:
m-lopez-f 2015-09-23 10:55:22 +02:00
parent dd73fe11cd
commit 2c3a91a3e9
1 changed files with 3 additions and 2 deletions

View File

@ -1904,8 +1904,9 @@ sub pandora_planned_downtime_weekly_start($$) {
# Start pending downtimes
my @downtimes = get_db_rows($dbh, 'SELECT *
FROM tplanned_downtime
WHERE type_periodicity = ?
AND executed = 0', 'weekly');
WHERE type_periodicity = ?
AND type_execution <> ?
AND executed = 0', 'weekly', 'once');
foreach my $downtime (@downtimes) {
my $across_date = $downtime->{'periodically_time_from'} gt $downtime->{'periodically_time_to'} ? 1 : 0 ;