PM-1275 PM-1276: Create Dynaform from Copy/Import & PM Table dynaform.

This commit is contained in:
Roly Rudy Gutierrez Pinto
2015-01-19 11:29:15 -04:00
parent cebc26100e
commit 5fb4cb9217
2 changed files with 162 additions and 0 deletions

View File

@@ -544,6 +544,16 @@ class DynaForm
$this->throwExceptionIfNotExistsDynaForm($dynaFormUidCopyImport, $processUidCopyImport, $this->getFieldNameByFormatFieldName("COPY_IMPORT.DYN_UID"));
//Copy/Import
//Copy content if version is 2
if ($arrayData["DYN_VERSION"] === 2) {
$dynaFormOld = new \Dynaform();
$arrayDynaFormData = $dynaFormOld->Load($dynaFormUidCopyImport);
$arrayData["DYN_CONTENT"] = $arrayDynaFormData["DYN_CONTENT"];
}
//Create
$arrayData = $this->create($processUid, $arrayData);