diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index eb6e70d63..24d3d664e 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -1,8 +1,5 @@ removeElement("upload"); if ($service_showForm->validateShowForms($forms, $data)) { - $service_show->addUpdateShow($data); + // Get the show ID from the show service to pass as a parameter to the RESTful ShowController + $this->view->showId = $service_show->addUpdateShow($data); //send new show forms to the user $this->createShowFormAction(true); @@ -610,17 +608,6 @@ class ScheduleController extends Zend_Controller_Action } } - /** - * Since the form is being submitted via jQuery, this function accepts - * a second AJAX request and writes the file (sent as a FormData object) - */ - public function uploadImageAction() - { - Rest_MediaController::processUploadedImage( - $_FILES["show-image"]["tmp-name"], - $_FILES["show-image"]["name"]); - } - public function createShowFormAction($populateDefaults=false) { $service_showForm = new Application_Service_ShowFormService();