CC-3193: context menu "Delete This Instance and All Following" doesn't make sense when appearing on a non-repeating show

Show the menu item when the show is rebroadcasting.
This commit is contained in:
Yuchen Wang 2011-12-14 22:21:02 -05:00
parent 7542d86b94
commit b42d217684

View file

@ -246,7 +246,7 @@ class ScheduleController extends Zend_Controller_Action
'callback' => 'window["beginEditShow"]'), 'title' => 'Edit Show');
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/delete-show'.$params,
'callback' => 'window["scheduleRefetchEvents"]'), 'title' => 'Delete This Instance');
if ($show->getShow()->isRepeating()) {
if ($show->getShow()->isRepeating() || $show->getShow()->isRebroadcast()) {
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/cancel-show'.$params,
'callback' => 'window["scheduleRefetchEvents"]'), 'title' => 'Delete This Instance and All Following');
}