show will open dialog properly showing scheduled content if there is any

This commit is contained in:
naomiaro 2011-01-13 18:27:44 -05:00
parent a8f24952bd
commit f312ea0d60
6 changed files with 34 additions and 16 deletions

View file

@ -146,6 +146,11 @@ class ScheduleController extends Zend_Controller_Action
$end = $this->_getParam('end');
$showId = $this->_getParam('showId');
$day = $this->_getParam('day');
$search = $this->_getParam('search', null);
if($search == "") {
$search = null;
}
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
@ -159,7 +164,7 @@ class ScheduleController extends Zend_Controller_Action
$show->scheduleShow($start, array($plId));
}
$this->view->playlists = $show->searchPlaylistsForShow($day);
$this->view->playlists = $show->searchPlaylistsForShow($day, $search);
$this->view->showContent = $show->getShowContent($start);
$this->view->choice = $this->view->render('schedule/find-playlists.phtml');