From 0d436d323cec1e90178e93b80e18347bf84756d7 Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 29 May 2013 11:42:02 -0400 Subject: [PATCH] CC-5179: Now Playing: Schedule will be incorrect after insert action Was not accounting for crossfade value when adjusting schedule times after insert --- airtime_mvc/application/models/Scheduler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Scheduler.php b/airtime_mvc/application/models/Scheduler.php index a0f1fc3d1..596cbc8d5 100644 --- a/airtime_mvc/application/models/Scheduler.php +++ b/airtime_mvc/application/models/Scheduler.php @@ -644,7 +644,12 @@ class Application_Model_Scheduler $pstart = microtime(true); - $initalStartDT = clone $nextStartDT; + if ($applyCrossfades) { + $initalStartDT = clone $this->findTimeDifference( + $nextStartDT, $this->crossfadeDuration); + } else { + $initalStartDT = clone $nextStartDT; + } $pend = microtime(true); Logging::debug("finding all following items.");