From 3bbc84365ea926b4b21eb18e5dca45c4b406fe1d Mon Sep 17 00:00:00 2001 From: naomiaro Date: Sat, 5 Feb 2011 19:47:04 -0500 Subject: [PATCH] listing show contents option works. --- application/controllers/ScheduleController.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/application/controllers/ScheduleController.php b/application/controllers/ScheduleController.php index 28d0f194e..06ed80f39 100644 --- a/application/controllers/ScheduleController.php +++ b/application/controllers/ScheduleController.php @@ -310,18 +310,11 @@ class ScheduleController extends Zend_Controller_Action public function showContentDialogAction() { - $start_timestamp = $this->_getParam('start'); - $end_timestamp = $this->_getParam('end'); - $showId = $this->_getParam('id'); + $showInstanceId = $this->_getParam('id'); + $show = new ShowInstance($showInstanceId); - $userInfo = Zend_Auth::getInstance()->getStorage()->read(); - - $user = new User($userInfo->id, $userInfo->type); - $show = new Show($user, $showId); - - $this->view->showContent = $show->getShowListContent($start_timestamp); + $this->view->showContent = $show->getShowListContent(); $this->view->dialog = $this->view->render('schedule/show-content-dialog.phtml'); - unset($this->view->showContent); }