@@ -2048,8 +2048,8 @@ class Cases
|
|||||||
throw (new PropelException('The row cannot be created!', new PropelException($msg)));
|
throw (new PropelException('The row cannot be created!', new PropelException($msg)));
|
||||||
}
|
}
|
||||||
$taskNext = TaskPeer::retrieveByPK($appDel->getTasUid());
|
$taskNext = TaskPeer::retrieveByPK($appDel->getTasUid());
|
||||||
if($taskNext->getTasType() == 'NORMAL'){
|
if($taskNext->getTasType() !== 'SUBPROCESS'){
|
||||||
if($oApplication->getAppStatus() == "DRAFT"){
|
if($oApplication->getAppStatus() === 'DRAFT'){
|
||||||
$sUserUid = $appDel->getUsrUid();
|
$sUserUid = $appDel->getUsrUid();
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
$users = new Users();
|
$users = new Users();
|
||||||
@@ -2062,15 +2062,6 @@ class Cases
|
|||||||
$users->refreshTotal($sUserUid, "remove", "inbox");
|
$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");
|
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user