HOR-848: Contadores negativos al aplicar un 'delete cases'

This commit is contained in:
mcuiza
2016-04-25 16:01:14 -04:00
parent 0f7b71e501
commit f16bff05a2
2 changed files with 3 additions and 3 deletions

View File

@@ -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']);

View File

@@ -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);
}