PMCORE-3639

This commit is contained in:
Andrea Adamczyk
2022-01-19 15:28:24 -04:00
parent 1e9a2ecf34
commit 1cc91c4736

View File

@@ -408,17 +408,19 @@ class Bpmn extends Handler
$project->delete();
}
$process = new Processes();
$repTable = $process->getReportTables($this->getUid());
$rows = [];
foreach ($repTable as $table) {
array_push($rows, ["id" => $table["ADD_TAB_UID"], "type" => ""]);
}
if (!empty($rows)) {
$httpData = (object)[];
$httpData->rows = json_encode($rows);
$repTable = new pmTablesProxy();
$repTable->delete($httpData);
if (!$force) {
$process = new Processes();
$repTable = $process->getReportTables($this->getUid());
$rows = [];
foreach ($repTable as $table) {
array_push($rows, ["id" => $table["ADD_TAB_UID"], "type" => ""]);
}
if (!empty($rows)) {
$httpData = (object)[];
$httpData->rows = json_encode($rows);
$repTable = new pmTablesProxy();
$repTable->delete($httpData);
}
}
self::log("Remove Project Success!");
@@ -1689,5 +1691,4 @@ class Bpmn extends Handler
throw $e;
}
}
}