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()) {
|
if ($this->ccShow->isRebroadcast()) {
|
||||||
$recordedShow = CcShowInstancesQuery::create()->findPk(
|
$recordedShow = CcShowInstancesQuery::create()->filterByCcShow(
|
||||||
$this->ccShowInstance->getDbOriginalShow());
|
$this->ccShowInstance->getDbOriginalShow())->findOne();
|
||||||
if (is_null($recordedShow)) {
|
if (is_null($recordedShow)) {
|
||||||
$this->ccShowInstance->delete();
|
$this->ccShowInstance->delete();
|
||||||
throw new Exception(_("Show was deleted because recorded show does not exist!"));
|
throw new Exception(_("Show was deleted because recorded show does not exist!"));
|
||||||
|
|
Loading…
Reference in New Issue