Merged in marcoAntonioNina/processmaker (pull request #585)
Improvement import process old.
This commit is contained in:
@@ -3485,10 +3485,12 @@ class Processes
|
||||
$XmlContent = str_replace( $oData->process['PRO_UID_OLD'], $oData->process['PRO_UID'], $XmlContent );
|
||||
$XmlContent = str_replace( $XmlGuid, $newXmlGuid, $XmlContent );
|
||||
|
||||
foreach($oData->inputFiles as $input => $valInput){
|
||||
$oldInput = $input;
|
||||
$newInput = $oData->inputFiles[$oldInput];
|
||||
$XmlContent = str_replace( $oldInput, $newInput, $XmlContent );
|
||||
if (isset( $oData->inputFiles )) {
|
||||
foreach($oData->inputFiles as $input => $valInput){
|
||||
$oldInput = $input;
|
||||
$newInput = $oData->inputFiles[$oldInput];
|
||||
$XmlContent = str_replace( $oldInput, $newInput, $XmlContent );
|
||||
}
|
||||
}
|
||||
|
||||
//foreach
|
||||
|
||||
@@ -173,9 +173,10 @@ class Dynaform extends BaseDynaform
|
||||
if (isset($aData["DYN_CONTENT"])) {
|
||||
$this->setDynContent($aData["DYN_CONTENT"]);
|
||||
}
|
||||
if (isset($aData["DYN_VERSION"])) {
|
||||
$this->setDynVersion( $aData['DYN_VERSION'] );
|
||||
if (!isset($aData['DYN_VERSION'])) {
|
||||
$aData['DYN_VERSION'] = 0;
|
||||
}
|
||||
$this->setDynVersion( $aData['DYN_VERSION'] );
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$res = $this->save();
|
||||
|
||||
Reference in New Issue
Block a user