Merged in luisfernandosl/processmaker/PM-2109 (pull request #1893)
PM-2109 "REST endpoint PUT /cases/{app_uid}/unpause..." SOLVED
This commit is contained in:
@@ -811,6 +811,12 @@ class Cases
|
|||||||
}
|
}
|
||||||
Validator::isInteger($del_index, '$del_index');
|
Validator::isInteger($del_index, '$del_index');
|
||||||
|
|
||||||
|
$oDelay = new \AppDelay();
|
||||||
|
|
||||||
|
if (!$oDelay->isPaused($app_uid, $del_index)) {
|
||||||
|
throw (new \Exception(\G::LoadTranslation("ID_CASE_NOT_PAUSED", array($app_uid))));
|
||||||
|
}
|
||||||
|
|
||||||
$case = new \Cases();
|
$case = new \Cases();
|
||||||
$case->unpauseCase( $app_uid, $del_index, $usr_uid );
|
$case->unpauseCase( $app_uid, $del_index, $usr_uid );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user