Adding support for replace and merge items.
This commit is contained in:
@@ -1796,9 +1796,10 @@ class Processes
|
|||||||
$record = $value;
|
$record = $value;
|
||||||
if ($processUser->Exists($record["PU_UID"])) {
|
if ($processUser->Exists($record["PU_UID"])) {
|
||||||
$result = $processUser->update($record["PU_UID"]);
|
$result = $processUser->update($record["PU_UID"]);
|
||||||
}
|
} else {
|
||||||
$result = $processUser->create($record);
|
$result = $processUser->create($record);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
@@ -2607,9 +2608,10 @@ class Processes
|
|||||||
$oStepSupervisor = new StepSupervisor();
|
$oStepSupervisor = new StepSupervisor();
|
||||||
if ($oStepSupervisor->Exists( $row['STEP_UID'] )) {
|
if ($oStepSupervisor->Exists( $row['STEP_UID'] )) {
|
||||||
$oStepSupervisor->update( $row['STEP_UID'] );
|
$oStepSupervisor->update( $row['STEP_UID'] );
|
||||||
}
|
} else {
|
||||||
$oStepSupervisor->create( $row );
|
$oStepSupervisor->create( $row );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
@@ -2743,9 +2745,10 @@ class Processes
|
|||||||
$oPermission = new ObjectPermission();
|
$oPermission = new ObjectPermission();
|
||||||
if ($oPermission->Exists( $row['OP_UID'] )) {
|
if ($oPermission->Exists( $row['OP_UID'] )) {
|
||||||
$oPermission->update( $row['OP_UID'] );
|
$oPermission->update( $row['OP_UID'] );
|
||||||
}
|
} else {
|
||||||
$oPermission->create($row);
|
$oPermission->create($row);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
@@ -3591,8 +3594,9 @@ class Processes
|
|||||||
$oConnection = new DbSource();
|
$oConnection = new DbSource();
|
||||||
if ($oConnection->Exists( $aRow['DBS_UID'], $aRow['PRO_UID'] )) {
|
if ($oConnection->Exists( $aRow['DBS_UID'], $aRow['PRO_UID'] )) {
|
||||||
$oConnection->update( $aRow );
|
$oConnection->update( $aRow );
|
||||||
}
|
} else {
|
||||||
$oConnection->create( $aRow );
|
$oConnection->create( $aRow );
|
||||||
|
}
|
||||||
|
|
||||||
// Update information in the table of contents
|
// Update information in the table of contents
|
||||||
$oContent = new Content();
|
$oContent = new Content();
|
||||||
|
|||||||
Reference in New Issue
Block a user