CC-5078: Wrong start time if dragging dynamic smart block into a show

This commit is contained in:
denise 2013-05-01 11:29:32 -04:00
parent 0362f24a4e
commit 5ba5864d8c
1 changed files with 6 additions and 6 deletions

View File

@ -602,6 +602,12 @@ class Application_Model_Scheduler
$nextStartDT = $endTimeDT;
$pos++;
/* If we are adjusting start and end times for items
* after the insert location, we need to exclude the
* schedule item we just inserted because it has correct
* start and end times*/
$excludeIds[] = $sched->getDbId();
}//all files have been inserted/moved
// update is_scheduled flag for each cc_file
@ -617,12 +623,6 @@ class Application_Model_Scheduler
$filesToInsert = null;
}
/* If we are adjusting start and end times for items
* after the insert location, we need to exclude the
* schedule item we just inserted because it has correct
* start and end times*/
$excludeIds[] = $sched->getDbId();
if ($adjustSched === true) {
$followingSchedItems = CcScheduleQuery::create()
->filterByDBStarts($initalStartDT->format("Y-m-d H:i:s.u"), Criteria::GREATER_EQUAL)