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:
parent
4daa34d14b
commit
05e4195165
|
@ -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!"));
|
||||
|
|
Loading…
Reference in New Issue