CC-1805: Ability to edit a show
Fixed bug for single-show instances.
This commit is contained in:
parent
b034958fc5
commit
9e23d8b902
|
@ -246,7 +246,7 @@ class ScheduleController extends Zend_Controller_Action
|
|||
if ($user->isAdmin()) {
|
||||
|
||||
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/edit-show/format/json/id/'.$id,
|
||||
'callback' => 'window["beginEditShow"]'), 'title' => 'Edit This Instance');
|
||||
'callback' => 'window["beginEditShow"]'), 'title' => 'Edit Show');
|
||||
//$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/cancel-show'.$params,
|
||||
// 'callback' => 'window["scheduleRefetchEvents"]'), 'title' => 'Edit This Instance and All Following');
|
||||
$menu[] = array('action' => array('type' => 'ajax', 'url' => '/Schedule/delete-show'.$params,
|
||||
|
|
|
@ -188,6 +188,10 @@ class Show {
|
|||
."AND record = 1";
|
||||
$baseDate = $CC_DBC->GetOne($sql);
|
||||
|
||||
if (is_null($baseDate)){
|
||||
return array();
|
||||
}
|
||||
|
||||
$sql = "SELECT date(DATE '$baseDate' + day_offset::INTERVAL) as start_date, start_time FROM cc_show_rebroadcast "
|
||||
."WHERE show_id = $showId "
|
||||
."ORDER BY start_date";
|
||||
|
|
Loading…
Reference in New Issue