BUG-12189 When calling unpauseCase from a web service twice, the case gets duplicated. SOLVED
Descripcion: When calling unpauseCase from a web service twice, the case gets duplicated. Solucion: Se verifica el estado del caso, se ejecutara el metodo de despausar en un caso siempre que este en el estado de "Pause". Resuelto para la version 2.5.1-testing.1-402-gbcc9bdb
This commit is contained in:
@@ -3806,6 +3806,14 @@ class Cases
|
||||
|
||||
public function unpauseCase($sApplicationUID, $iDelegation, $sUserUID)
|
||||
{
|
||||
//Verify status of the case
|
||||
$oDelay = new AppDelay();
|
||||
if (method_exists($oDelay, 'isPaused')) {
|
||||
if ($oDelay->isPaused($sApplicationUID, $iDelegation) === false) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//get information about current $iDelegation row
|
||||
$oAppDelegation = new AppDelegation();
|
||||
$aFieldsDel = $oAppDelegation->Load($sApplicationUID, $iDelegation);
|
||||
|
||||
Reference in New Issue
Block a user