From 5ba5864d8cb3afbcfd7b2f29802a3330b70016f5 Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 1 May 2013 11:29:32 -0400 Subject: [PATCH] CC-5078: Wrong start time if dragging dynamic smart block into a show --- airtime_mvc/application/models/Scheduler.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/airtime_mvc/application/models/Scheduler.php b/airtime_mvc/application/models/Scheduler.php index 3778cf007..17888fe46 100644 --- a/airtime_mvc/application/models/Scheduler.php +++ b/airtime_mvc/application/models/Scheduler.php @@ -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)