HOR-3375
This commit is contained in:
@@ -3363,12 +3363,13 @@ class Cases
|
||||
//if the user is not in the task, we need to return a valid del index, so we are returning the latest delindex
|
||||
$oCriteria = new Criteria();
|
||||
$oCriteria->add(AppDelegationPeer::APP_UID, $sApplicationUID);
|
||||
$oCriteria->add(AppDelegationPeer::DEL_THREAD_STATUS, 'OPEN');
|
||||
$oCriteria->addDescendingOrderByColumn(AppDelegationPeer::DEL_DELEGATE_DATE);
|
||||
$oApplication = AppDelegationPeer::doSelectOne($oCriteria);
|
||||
if (!is_null($oApplication)) {
|
||||
return $oApplication->getDelIndex();
|
||||
}
|
||||
throw ( new Exception('this case has 0 delegations') );
|
||||
throw ( new Exception('This case has 0 current delegations') );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -1017,7 +1017,7 @@ class Light
|
||||
{
|
||||
$response = array("status" => "fail");
|
||||
$oCase = new \Cases();
|
||||
$iDelIndex = $oCase->getCurrentDelegation( $sAppUid, $userUid );
|
||||
$iDelIndex = $oCase->getCurrentDelegation( $sAppUid, '' );
|
||||
|
||||
$oAppDelegation = new \AppDelegation();
|
||||
$aDelegation = $oAppDelegation->load( $sAppUid, $iDelIndex );
|
||||
|
||||
Reference in New Issue
Block a user