From 064490a2fd18183924512af6f5a157d5aa6b24ee Mon Sep 17 00:00:00 2001 From: James Date: Mon, 9 Apr 2012 10:37:44 -0400 Subject: [PATCH] CC-3603: Calendar->Once you update the rebroadcasted show it disappears - temp commit --- .../application/controllers/ScheduleController.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/airtime_mvc/application/controllers/ScheduleController.php b/airtime_mvc/application/controllers/ScheduleController.php index 23f4933b0..007622ca3 100644 --- a/airtime_mvc/application/controllers/ScheduleController.php +++ b/airtime_mvc/application/controllers/ScheduleController.php @@ -30,6 +30,7 @@ class ScheduleController extends Zend_Controller_Action ->addActionContext('set-time-interval', 'json') ->addActionContext('edit-show-instance', 'json') ->addActionContext('dj-edit-show', 'json') + ->addActionContext('edit-show-rebroadcast', 'json') ->initContext(); $this->sched_sess = new Zend_Session_Namespace("schedule"); @@ -448,6 +449,8 @@ class ScheduleController extends Zend_Controller_Action if ($type == "instance"){ $this->view->action = "edit-show-instance"; + }else if($type == "rebroadcast"){ + $this->view->action = "edit-show-rebroadcast"; } try{ @@ -630,6 +633,17 @@ class ScheduleController extends Zend_Controller_Action } + public function editShowRebroadcastAction(){ + $js = $this->_getParam('data'); + $data = array(); + + //need to convert from serialized jQuery array. + foreach($js as $j){ + $data[$j["name"]] = $j["value"]; + } + + } + public function djEditShowAction(){ $js = $this->_getParam('data'); $data = array();