MT-39
This commit is contained in:
@@ -2905,7 +2905,7 @@ class Processes
|
|||||||
{
|
{
|
||||||
$oDynaform = new Dynaform();
|
$oDynaform = new Dynaform();
|
||||||
foreach ($aDynaform as $key => $row) {
|
foreach ($aDynaform as $key => $row) {
|
||||||
if (!$oDynaform->exists($row['DYN_UID'])) {
|
if ($oDynaform->exists($row['DYN_UID'])) {
|
||||||
$res = $oDynaform->update($row);
|
$res = $oDynaform->update($row);
|
||||||
} else {
|
} else {
|
||||||
$res = $oDynaform->create($row);
|
$res = $oDynaform->create($row);
|
||||||
@@ -2915,6 +2915,21 @@ class Processes
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add new Dynaforms rows if the passed ones are not existent
|
||||||
|
* @param $aDynaform
|
||||||
|
*/
|
||||||
|
public function addNewDynaformRows($aDynaform)
|
||||||
|
{
|
||||||
|
$oDynaform = new Dynaform();
|
||||||
|
foreach ($aDynaform as $key => $row) {
|
||||||
|
if (!$oDynaform->exists($row['DYN_UID'])) {
|
||||||
|
$res = $oDynaform->create($row);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Step Trigger Rows for a Process form an array
|
* Create Step Trigger Rows for a Process form an array
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user