From 27c3637591258b194941aeabfbc0c2fdfb4ee98e Mon Sep 17 00:00:00 2001 From: drigato Date: Mon, 16 Dec 2013 15:27:51 -0500 Subject: [PATCH] CC-5640: End time does not get updated when editing the current playing show Was checking if the start time was in the past, but we should check if the end time is in the past. This way you can extend or shrink shows that are currently playing. --- airtime_mvc/application/services/ShowService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index bca10af4a..183af4723 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -1055,9 +1055,9 @@ SQL; } /* When editing the start/end time of a repeating show, we don't want to - * change shows that started in the past. So check the start time. + * change shows that are in the past so we check the end time. */ - if ($newInstance || $ccShowInstance->getDbStarts() > gmdate("Y-m-d H:i:s")) { + if ($newInstance || $ccShowInstance->getDbEnds() > gmdate("Y-m-d H:i:s")) { $ccShowInstance->setDbShowId($show_id); $ccShowInstance->setDbStarts($utcStartDateTime); $ccShowInstance->setDbEnds($utcEndDateTime);