Merged in paulis/processmaker/PM-4384 (pull request #3335)

PM-4384
This commit is contained in:
Julio Cesar Laura Avendaño
2015-12-08 12:53:15 -04:00

View File

@@ -2003,6 +2003,13 @@ class Cases
$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");
}
}
}
/*----------------------------------********---------------------------------*/