HOR-3700 fix when a permission is deleted with a case status defined
This commit is contained in:
@@ -48,12 +48,15 @@ try {
|
||||
$oOP = ObjectPermissionPeer::retrieveByPK($_GET['OP_UID']);
|
||||
$sProcessUID = $oOP->getProUid();
|
||||
$oOP->delete();
|
||||
|
||||
$result = new stdclass();
|
||||
$result->success = true;
|
||||
$result->msg = G::LoadTranslation('ID_REPORTTABLE_REMOVED');
|
||||
|
||||
$oProcessMap = new ProcessMap();
|
||||
$oProcessMap->getObjectsPermissionsCriteria($sProcessUID);
|
||||
} catch (Exception $e) {
|
||||
$result = new stdclass();
|
||||
$result->success = false;
|
||||
$result->msg = $e->getMessage();
|
||||
}
|
||||
@@ -61,4 +64,5 @@ print G::json_encode( $result );
|
||||
|
||||
$infoProcess = new Processes();
|
||||
$resultProcess = $infoProcess->getProcessRow($sProcessUID);
|
||||
G::auditLog('DeletePermissions','Delete Permissions ('.$_GET['OP_UID'].') in Process "'.$resultProcess['PRO_TITLE'].'"');
|
||||
G::auditLog('DeletePermissions',
|
||||
'Delete Permissions (' . $_GET['OP_UID'] . ') in Process "' . $resultProcess['PRO_TITLE'] . '"');
|
||||
|
||||
Reference in New Issue
Block a user