From eafbd7d5e905d5729612e1bbf86bf932b6c22111 Mon Sep 17 00:00:00 2001 From: drigato Date: Tue, 6 May 2014 13:01:20 -0400 Subject: [PATCH] CC-5838: Editing a repeating show yields in error if an instance is in the past Was not checking if show is repeating properly --- airtime_mvc/application/services/ShowFormService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/services/ShowFormService.php b/airtime_mvc/application/services/ShowFormService.php index b0e378a9f..882d22c44 100644 --- a/airtime_mvc/application/services/ShowFormService.php +++ b/airtime_mvc/application/services/ShowFormService.php @@ -393,7 +393,7 @@ class Application_Service_ShowFormService //if the show is repeating, set the start date to the next //repeating instance in the future - if ($currentShowDay->isRepeating()) { + if ($this->ccShow->isRepeating()) { list($originalShowStartDateTime,) = $this->getNextFutureRepeatShowTime(); } else { $originalShowStartDateTime = $dt;