From ee489b39f93b07e4d9e61c3f5b36dd7d891d3cd7 Mon Sep 17 00:00:00 2001 From: drigato Date: Fri, 6 Jun 2014 14:51:01 -0400 Subject: [PATCH] CC-5869: Changing a repeating show to non-repeating and changing start time does not work --- airtime_mvc/application/services/ShowService.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index cc0db9393..3c6d5f713 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -289,7 +289,15 @@ class Application_Service_ShowService if ($this->ccShow->isRepeating()) { $ccShowDays = $this->ccShow->getRepeatingCcShowDays(); } else { - $ccShowDays = $this->ccShow->getCcShowDayss(); + //$ccShowDays = $this->ccShow->getCcShowDayss(); + + /* Cannot use the above statement to get the cc_show_days + * object because it's getting the old object before the + * show was edited. clearInstancePool() didn't work. + */ + $ccShowDays = CcShowDaysQuery::create() + ->filterByDbShowId($this->ccShow->getDbId()) + ->find(); } }