PM-4474

PM-4474

PM-4474

PM-4474
This commit is contained in:
Paula V. Quispe
2015-12-18 15:59:47 -04:00
parent 2a64b4b77e
commit eec7ec3327
2 changed files with 9 additions and 1 deletions

View File

@@ -4176,7 +4176,6 @@ class Cases
public function pauseCase($sApplicationUID, $iDelegation, $sUserUID, $sUnpauseDate = null)
{
$this->CloseCurrentDelegation($sApplicationUID, $iDelegation);
$oApplication = new Application();
$aFields = $oApplication->Load($sApplicationUID);
//get the appthread row id ( APP_THREAD_INDEX' )
@@ -4194,6 +4193,7 @@ class Cases
throw new Exception(G::LoadTranslation("ID_CASE_STOPPED_TRIGGER"));
}
$this->CloseCurrentDelegation($sApplicationUID, $iDelegation);
//now create a row in APP_DELAY with type PAUSE
$aData['PRO_UID'] = $aFields['PRO_UID'];
$aData['APP_UID'] = $sApplicationUID;