HOR-848: Contadores negativos al aplicar un 'delete cases'
This commit is contained in:
@@ -1095,7 +1095,7 @@ class Process extends BaseProcess
|
||||
$oRuleSet->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
while($oRuleSet->next()) {
|
||||
$row = $oRuleSet->getRow();
|
||||
if(isset($row['USR_UID'])) {
|
||||
if(isset($row['USR_UID']) && $row['USR_UID'] != '' ) {
|
||||
$usersArray[$row['USR_UID']] = $row['USR_UID'];
|
||||
}
|
||||
$oCase->deleteDelegation($row['APP_UID']);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
global $RBAC;
|
||||
$RBAC->requirePermissions( 'PM_DELETE_PROCESS_CASES', 'PM_FACTORY' );
|
||||
|
||||
$resp = new StdClass();
|
||||
try {
|
||||
$uids = explode(',', $_POST['PRO_UIDS']);
|
||||
$oProcess = new Process();
|
||||
@@ -10,7 +10,6 @@ try {
|
||||
}
|
||||
$oProcess->refreshUserAllCountersByProcessesGroupUid($uids);
|
||||
|
||||
$resp = new StdClass();
|
||||
$resp->status = true;
|
||||
$resp->msg = G::LoadTranslation('ID_ALL_RECORDS_DELETED_SUCESSFULLY');
|
||||
|
||||
@@ -19,6 +18,7 @@ try {
|
||||
} catch (Exception $e) {
|
||||
$resp->status = false;
|
||||
$resp->msg = $e->getMessage();
|
||||
$resp->trace = $e->getTraceAsString();
|
||||
echo G::json_encode($resp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user