PM-4473
This commit is contained in:
Paula V. Quispe
2015-12-16 16:18:00 -04:00
parent ddce40596d
commit 27d2d309e5

View File

@@ -1997,19 +1997,25 @@ class Cases
if($taskNext->getTasType() == 'NORMAL'){
if($oApplication->getAppStatus() == "DRAFT"){
$sUserUid = $appDel->getUsrUid();
/*----------------------------------********---------------------------------*/
$users = new Users();
$users->refreshTotal($sUserUid, "remove", "draft");
/*----------------------------------********---------------------------------*/
}else{
$sUserUid = $appDel->getUsrUid();
/*----------------------------------********---------------------------------*/
$users = new Users();
$users->refreshTotal($sUserUid, "remove", "inbox");
/*----------------------------------********---------------------------------*/
}
}else{
//When start a case with SCRIPT-TASK WEBENTRYEVENT and the status is DRAFT
if($oApplication->getAppStatus() == "DRAFT"){
$sUserUid = $appDel->getUsrUid();
/*----------------------------------********---------------------------------*/
$users = new Users();
$users->refreshTotal($sUserUid, "remove", "draft");
/*----------------------------------********---------------------------------*/
}
}
}