@@ -4492,6 +4492,7 @@ class Cases
|
||||
$iIndex = $oAppDelegation->createAppDelegation(
|
||||
$aFieldsDel['PRO_UID'], $aFieldsDel['APP_UID'], $aFieldsDel['TAS_UID'], $aFieldsDel['USR_UID'], $aFieldsDel['DEL_THREAD']
|
||||
);
|
||||
$newDelIndex = $iIndex;
|
||||
$aData = array();
|
||||
$aData['APP_UID'] = $aFieldsDel['APP_UID'];
|
||||
$aData['DEL_INDEX'] = $iIndex;
|
||||
@@ -4532,14 +4533,12 @@ class Cases
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->add(ListParticipatedLastPeer::APP_UID, $aData['APP_UID']);
|
||||
$oCriteria->add(ListParticipatedLastPeer::USR_UID, $sUserUID);
|
||||
$oCriteria->add(ListParticipatedLastPeer::DEL_INDEX, $iDelegation);
|
||||
ListParticipatedLastPeer::doDelete($oCriteria);
|
||||
$participated = new ListParticipatedLast();
|
||||
$participated->remove($aData['APP_UID'], $newUserUID, $iDelegation);
|
||||
|
||||
$aFieldsDel = array_merge($aData, $aFieldsDel);
|
||||
$aFieldsDel['USR_UID'] = $newUserUID;
|
||||
$aFieldsDel['DEL_INDEX'] = $newDelIndex;
|
||||
$inbox = new ListInbox();
|
||||
$inbox->newRow($aFieldsDel, $sUserUID);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class ListInbox extends BaseListInbox
|
||||
*
|
||||
*/
|
||||
public function create($data, $isSelfService = false)
|
||||
{
|
||||
{
|
||||
$con = Propel::getConnection( ListInboxPeer::DATABASE_NAME );
|
||||
try {
|
||||
if(isset($data['APP_TITLE'])) {
|
||||
|
||||
@@ -170,26 +170,24 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
$criteria->add(ListParticipatedLastPeer::APP_UID, $app_uid);
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $usr_uid);
|
||||
$criteria->add(ListParticipatedLastPeer::DEL_INDEX, $del_index);
|
||||
|
||||
|
||||
if(!$this->isTheOne($app_uid, $usr_uid) || $force) {
|
||||
$result = ListParticipatedLastPeer::doDelete($criteria);
|
||||
$flagDelete = true;
|
||||
}
|
||||
|
||||
$flagDelete = true;
|
||||
} else {
|
||||
$criteria = new Criteria("workflow");
|
||||
|
||||
$criteria->add(ListParticipatedLastPeer::APP_UID, $app_uid);
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $usr_uid);
|
||||
|
||||
$rsCriteria = ListParticipatedLastPeer::doSelectRS($criteria);
|
||||
|
||||
if ($rsCriteria->next()) {
|
||||
$criteria2 = clone $criteria;
|
||||
if(!$this->isTheOne($app_uid, $usr_uid) || $force) {
|
||||
if(!$this->isTheOne($app_uid, $usr_uid) || $force) {
|
||||
$result = ListParticipatedLastPeer::doDelete($criteria2);
|
||||
$flagDelete = true;
|
||||
}
|
||||
$flagDelete = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user