Spaces:
Sleeping
Sleeping
File size: 670 Bytes
07c3cdd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <?php
global $RBAC;
$RBAC->requirePermissions( 'PM_DELETE_PROCESS_CASES', 'PM_FACTORY' );
$resp = new StdClass();
try {
$uids = explode(',', $_POST['PRO_UIDS']);
$oProcess = new Process();
foreach ($uids as $uid) {
$oProcess->deleteProcessCases($uid);
}
$oProcess->refreshUserAllCountersByProcessesGroupUid($uids);
$resp->status = true;
$resp->msg = G::LoadTranslation('ID_ALL_RECORDS_DELETED_SUCESSFULLY');
echo G::json_encode($resp);
} catch (Exception $e) {
$resp->status = false;
$resp->msg = $e->getMessage();
$resp->trace = $e->getTraceAsString();
echo G::json_encode($resp);
}
|