CC-5867: Can't edit show instance

This commit is contained in:
drigato 2014-06-06 12:22:59 -04:00
parent cc19b18d7f
commit e4bb97bcc4
1 changed files with 3 additions and 0 deletions

View File

@ -1039,6 +1039,9 @@ SQL;
);
$origStartDateTime->setTimezone(new DateTimeZone("UTC"));
$ccShowInstance = $this->getInstance($origStartDateTime);
if (!$ccShowInstance) {
throw new Exception("Could not find show instance with start time: ".$origStartDateTime->format("Y-m-d H:i:s"));
}
}
$ccShowInstance->setDbShowId($this->ccShow->getDbId());