CC-5390: Cannot drag & drop record show that has a rebroadcast

Was using wrong method to query for the rebroadcast show's
original recorded show
This commit is contained in:
denise 2013-10-09 17:24:16 -04:00
parent 4daa34d14b
commit 05e4195165
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,8 @@ class Application_Service_CalendarService
}
if ($this->ccShow->isRebroadcast()) {
$recordedShow = CcShowInstancesQuery::create()->findPk(
$this->ccShowInstance->getDbOriginalShow());
$recordedShow = CcShowInstancesQuery::create()->filterByCcShow(
$this->ccShowInstance->getDbOriginalShow())->findOne();
if (is_null($recordedShow)) {
$this->ccShowInstance->delete();
throw new Exception(_("Show was deleted because recorded show does not exist!"));