HOR-3207
Removed the deletion of WebEntry record when it is disabled. This attribute has no effect. Fixed importation of processes with WebEntry task information.
This commit is contained in:
@@ -883,6 +883,29 @@ class Processes
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* change and Renew all Task GUID owned by WebEntries
|
||||
*
|
||||
* @param string $oData
|
||||
* @return boolean
|
||||
*/
|
||||
public function renewAllWebEntryEventGuid(&$oData)
|
||||
{
|
||||
$map = array();
|
||||
foreach ($oData->webEntryEvent as $key => $val) {
|
||||
if (isset($val["EVN_UID_OLD"])) {
|
||||
$uidNew = \ProcessMaker\BusinessModel\WebEntryEvent::getTaskUidFromEvnUid($val["EVN_UID"]);
|
||||
$uidOld = \ProcessMaker\BusinessModel\WebEntryEvent::getTaskUidFromEvnUid($val["EVN_UID_OLD"]);
|
||||
foreach($oData->tasks as $index => $task) {
|
||||
if ($task["TAS_UID"]===$uidOld) {
|
||||
$oData->tasks[$index]["TAS_UID"]=$uidNew;
|
||||
$oData->tasks[$index]["TAS_UID_OLD"]=$uidOld;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* change and Renew all Task GUID, because the process needs to have a new set of tasks
|
||||
*
|
||||
@@ -2617,6 +2640,7 @@ class Processes
|
||||
$oData->uid["PROCESS"] = array($oData->process["PRO_PARENT"] => $oData->process["PRO_UID"]);
|
||||
}
|
||||
|
||||
$this->renewAllWebEntryEventGuid($oData);
|
||||
$this->renewAllTaskGuid($oData);
|
||||
$this->renewAllDynaformGuid($oData);
|
||||
$this->renewAllInputGuid($oData);
|
||||
|
||||
Reference in New Issue
Block a user