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:
Omar Suca
2013-08-07 16:06:23 -04:00
parent 5555dbeae2
commit dd63b8d56a

View File

@@ -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);