PM-3927
This commit is contained in:
@@ -1993,10 +1993,16 @@ 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' && $oApplication->getAppStatus() == "DRAFT"){
|
if($taskNext->getTasType() == 'NORMAL'){
|
||||||
$sUserUid = $appDel->getUsrUid();
|
if($oApplication->getAppStatus() == "DRAFT"){
|
||||||
$users = new Users();
|
$sUserUid = $appDel->getUsrUid();
|
||||||
$users->refreshTotal($sUserUid, "remove", "draft");
|
$users = new Users();
|
||||||
|
$users->refreshTotal($sUserUid, "remove", "draft");
|
||||||
|
}else{
|
||||||
|
$sUserUid = $appDel->getUsrUid();
|
||||||
|
$users = new Users();
|
||||||
|
$users->refreshTotal($sUserUid, "remove", "inbox");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|||||||
@@ -655,7 +655,7 @@ class Derivation
|
|||||||
if ($application->getAppStatus() == "DRAFT") {
|
if ($application->getAppStatus() == "DRAFT") {
|
||||||
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
||||||
} else {
|
} else {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($arrayNextDelegationData["TAS_UID"] != "-1") {
|
if ($arrayNextDelegationData["TAS_UID"] != "-1") {
|
||||||
@@ -685,7 +685,7 @@ class Derivation
|
|||||||
if ($application->getAppStatus() == "DRAFT") {
|
if ($application->getAppStatus() == "DRAFT") {
|
||||||
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
||||||
} else {
|
} else {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -696,7 +696,7 @@ class Derivation
|
|||||||
if ($application->getAppStatus() == "DRAFT") {
|
if ($application->getAppStatus() == "DRAFT") {
|
||||||
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "draft");
|
||||||
} else {
|
} else {
|
||||||
$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
//$user->refreshTotal($arrayApplicationData["CURRENT_USER_UID"], "remove", "inbox");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ class ListCompleted extends BaseListCompleted
|
|||||||
$dataset->next();
|
$dataset->next();
|
||||||
$aRow = $dataset->getRow();
|
$aRow = $dataset->getRow();
|
||||||
if ($aRow['TAS_TYPE'] != 'SUBPROCESS') {
|
if ($aRow['TAS_TYPE'] != 'SUBPROCESS') {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
//$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$criteria = new Criteria();
|
$criteria = new Criteria();
|
||||||
@@ -125,7 +125,7 @@ class ListCompleted extends BaseListCompleted
|
|||||||
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
||||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
if ($dataset->next()) {
|
if ($dataset->next()) {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
//$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
||||||
} else {
|
} else {
|
||||||
//$users->refreshTotal($data['USR_UID'], 'remove', 'draft');
|
//$users->refreshTotal($data['USR_UID'], 'remove', 'draft');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -324,12 +324,12 @@ class ListInbox extends BaseListInbox
|
|||||||
$criteria->add( SubApplicationPeer::APP_UID, $data['APP_UID'], Criteria::EQUAL );
|
$criteria->add( SubApplicationPeer::APP_UID, $data['APP_UID'], Criteria::EQUAL );
|
||||||
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
||||||
if ($dataset->next()) {
|
if ($dataset->next()) {
|
||||||
$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
||||||
} else {
|
} else {
|
||||||
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'draft');
|
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'draft');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
//$users->refreshTotal($delPreviusUsrUid, 'remove', 'inbox');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$isSelfService) {
|
if (!$isSelfService) {
|
||||||
@@ -343,7 +343,7 @@ class ListInbox extends BaseListInbox
|
|||||||
if ($dataPreviusApplication['APP_STATUS'] == 'DRAFT') {
|
if ($dataPreviusApplication['APP_STATUS'] == 'DRAFT') {
|
||||||
//$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'draft');
|
//$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'draft');
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'inbox');
|
//$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'inbox');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::create($data, $isSelfService);
|
self::create($data, $isSelfService);
|
||||||
|
|||||||
Reference in New Issue
Block a user