Se corrige la respuesta en delete (dynaforms e inputdocuments) para PROCESS SUPERVISOR,
This commit is contained in:
@@ -848,7 +848,6 @@ class ProcessSupervisor
|
||||
*/
|
||||
public function removeInputDocumentSupervisor($sProcessUID, $sPuiUID)
|
||||
{
|
||||
$oConnection = \Propel::getConnection(\StepSupervisorPeer::DATABASE_NAME);
|
||||
try {
|
||||
$oInputDocumentSupervidor = \StepSupervisorPeer::retrieveByPK($sPuiUID);
|
||||
if (!is_null($oInputDocumentSupervidor)) {
|
||||
@@ -858,7 +857,6 @@ class ProcessSupervisor
|
||||
throw (new \Exception('This row does not exist!'));
|
||||
}
|
||||
} catch (Exception $oError) {
|
||||
$oConnection->rollback();
|
||||
throw ($oError);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -286,6 +286,7 @@ class ProcessSupervisors extends Api
|
||||
try {
|
||||
$supervisor = new \BusinessModel\ProcessSupervisor();
|
||||
$supervisor->removeDynaformSupervisor($prjUid, $pudUid);
|
||||
ob_end_clean();
|
||||
} catch (\Exception $e) {
|
||||
//response
|
||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||
@@ -304,6 +305,7 @@ class ProcessSupervisors extends Api
|
||||
try {
|
||||
$supervisor = new \BusinessModel\ProcessSupervisor();
|
||||
$supervisor->removeInputDocumentSupervisor($prjUid, $puiUid);
|
||||
ob_end_clean();
|
||||
} catch (\Exception $e) {
|
||||
//response
|
||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user