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)
|
public function removeInputDocumentSupervisor($sProcessUID, $sPuiUID)
|
||||||
{
|
{
|
||||||
$oConnection = \Propel::getConnection(\StepSupervisorPeer::DATABASE_NAME);
|
|
||||||
try {
|
try {
|
||||||
$oInputDocumentSupervidor = \StepSupervisorPeer::retrieveByPK($sPuiUID);
|
$oInputDocumentSupervidor = \StepSupervisorPeer::retrieveByPK($sPuiUID);
|
||||||
if (!is_null($oInputDocumentSupervidor)) {
|
if (!is_null($oInputDocumentSupervidor)) {
|
||||||
@@ -858,7 +857,6 @@ class ProcessSupervisor
|
|||||||
throw (new \Exception('This row does not exist!'));
|
throw (new \Exception('This row does not exist!'));
|
||||||
}
|
}
|
||||||
} catch (Exception $oError) {
|
} catch (Exception $oError) {
|
||||||
$oConnection->rollback();
|
|
||||||
throw ($oError);
|
throw ($oError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -286,6 +286,7 @@ class ProcessSupervisors extends Api
|
|||||||
try {
|
try {
|
||||||
$supervisor = new \BusinessModel\ProcessSupervisor();
|
$supervisor = new \BusinessModel\ProcessSupervisor();
|
||||||
$supervisor->removeDynaformSupervisor($prjUid, $pudUid);
|
$supervisor->removeDynaformSupervisor($prjUid, $pudUid);
|
||||||
|
ob_end_clean();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
//response
|
//response
|
||||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||||
@@ -304,6 +305,7 @@ class ProcessSupervisors extends Api
|
|||||||
try {
|
try {
|
||||||
$supervisor = new \BusinessModel\ProcessSupervisor();
|
$supervisor = new \BusinessModel\ProcessSupervisor();
|
||||||
$supervisor->removeInputDocumentSupervisor($prjUid, $puiUid);
|
$supervisor->removeInputDocumentSupervisor($prjUid, $puiUid);
|
||||||
|
ob_end_clean();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
//response
|
//response
|
||||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user