adding show instance to the create form if it's already set.

This commit is contained in:
Naomi Aro 2013-08-31 23:34:37 -04:00
parent 614a8174d5
commit 9c0bee3877
3 changed files with 26 additions and 6 deletions

View file

@ -564,7 +564,16 @@ class Application_Service_HistoryService
$formValues = array();
$historyRecord = CcPlayoutHistoryQuery::create()->findPk($id, $this->con);
$file = $historyRecord->getCcFiles();
$file = $historyRecord->getCcFiles($this->con);
$instance = $historyRecord->getCcShowInstances($this->con);
if (isset($instance)) {
$show = $instance->getCcShow($this->con);
$selOpts = array();
$instance_id = $instance->getDbId();
$selOpts[$instance_id] = $show->getDbName();
$form->populateShowInstances($selOpts, $instance_id);
}
if (isset($file)) {
$f = Application_Model_StoredFile::createWithFile($file, $this->con);