Merged in release/3.7.3 (pull request #8354)

release/3.7.3

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2022-01-20 21:08:41 +00:00
committed by Julio Cesar Laura Avendaño
9 changed files with 50 additions and 29 deletions

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;
}
}
}