adding show instance to the create form if it's already set.
This commit is contained in:
parent
614a8174d5
commit
9c0bee3877
3 changed files with 26 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue