diff --git a/airtime_mvc/application/services/ScheduleService.php b/airtime_mvc/application/services/ScheduleService.php index e8322882b..c0bc1a844 100644 --- a/airtime_mvc/application/services/ScheduleService.php +++ b/airtime_mvc/application/services/ScheduleService.php @@ -171,6 +171,7 @@ class Application_Service_ScheduleService if ($isAdminOrPM) { $service_show = new Application_Service_ShowService(); + $service_showInstances = new Application_Service_ShowInstanceService(); //create ccShow $ccShow = new CcShow(); @@ -187,7 +188,9 @@ class Application_Service_ScheduleService //create ccShowHosts $service_show->createShowHosts($showData, $showId); - //populate ccShowInstances + $populateShowsUntil = $service_show->getPopulateShowUntilDateTIme(); + //create ccShowInstances + $service_showInstances->createShowInstances($showId, $populateShowsUntil); } } diff --git a/airtime_mvc/application/services/ShowInstanceService.php b/airtime_mvc/application/services/ShowInstanceService.php new file mode 100644 index 000000000..1f7a2eedc --- /dev/null +++ b/airtime_mvc/application/services/ShowInstanceService.php @@ -0,0 +1,8 @@ + $showId), 'all'); + } } \ No newline at end of file