From 96ac9cb534f9ae9cf00d883f6e7ac553258be47b Mon Sep 17 00:00:00 2001 From: drigato Date: Fri, 24 May 2013 09:43:03 -0400 Subject: [PATCH] CC-5174: Linked Show: Update a regular show to linked show will move the whole scheduled time forward. --- airtime_mvc/application/services/SchedulerService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/services/SchedulerService.php b/airtime_mvc/application/services/SchedulerService.php index 1d9c5e244..3ae0acae5 100644 --- a/airtime_mvc/application/services/SchedulerService.php +++ b/airtime_mvc/application/services/SchedulerService.php @@ -197,12 +197,12 @@ class Application_Service_SchedulerService if (count($ccSchedules) < 1 || self::replaceInstanceContentCheck($ccSchedules, $showStamp)) { - //$nextStartDT = $ccShowInstance->getDbStarts(null); $instanceStart_sql = "SELECT starts FROM cc_show_instances ". - "WHERE id = {$id}"; + "WHERE id = {$id} ". + "ORDER BY starts"; $nextStartDT = new DateTime( Application_Common_Database::prepareAndExecute( - $instanceStart_sql, array(), Application_Common_Database::EXECUTE), + $instanceStart_sql, array(), Application_Common_Database::COLUMN), new DateTimeZone("UTC")); foreach ($showStamp as $item) {