PM-4464: BachRouting> Al eliminar la tabla desde reportable permanece en el listado e Bachrouting generando un error en consola
This commit is contained in:
@@ -447,6 +447,16 @@ class pmTablesProxy extends HttpProxyController
|
|||||||
} else {
|
} else {
|
||||||
$at->deleteAll( $row->id );
|
$at->deleteAll( $row->id );
|
||||||
$count ++;
|
$count ++;
|
||||||
|
}
|
||||||
|
|
||||||
|
$oCriteria = new Criteria('workflow');
|
||||||
|
$oCriteria->add(CaseConsolidatedCorePeer::REP_TAB_UID, $row->id);
|
||||||
|
$oResult = CaseConsolidatedCorePeer::doSelectOne($oCriteria);
|
||||||
|
if(!empty($oResult)) {
|
||||||
|
$sTasUid = $oResult->getTasUid();
|
||||||
|
$oCaseConsolidated = new CaseConsolidatedCore();
|
||||||
|
$oCaseConsolidated = CaseConsolidatedCorePeer::retrieveByPK($sTasUid);
|
||||||
|
$oCaseConsolidated->delete();
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$tableName = isset( $table['ADD_TAB_NAME'] ) ? $table['ADD_TAB_NAME'] : $row->id;
|
$tableName = isset( $table['ADD_TAB_NAME'] ) ? $table['ADD_TAB_NAME'] : $row->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user