CC-5309:Calendar-> Recording Show: Fail to open context menu

Better error msg, also add more information in show-record.log
This commit is contained in:
cliff.wang 2013-08-23 14:23:47 -04:00
parent ceba84d1f7
commit 12a62a3827
3 changed files with 19 additions and 7 deletions

View file

@ -45,11 +45,16 @@ class Application_Service_CalendarService
if ($this->ccShowInstance->isRecorded()) {
$ccFile = $this->ccShowInstance->getCcFiles();
$menu["view_recorded"] = array(
"name" => _("View Recorded File Metadata"),
"icon" => "overview",
"url" => $baseUrl."library/edit-file-md/id/".$ccFile->getDbId());
if (!isset($ccFile)) {
$menu["error when recording"] = array (
"name" => _("Record file doesn't exist"),
"icon" => "error");
}else {
$menu["view_recorded"] = array(
"name" => _("View Recorded File Metadata"),
"icon" => "overview",
"url" => $baseUrl."library/edit-file-md/id/".$ccFile->getDbId());
}
//recorded show can be uploaded to soundcloud
if (Application_Model_Preference::GetUploadToSoundcloudOption()) {