Merged in bugfix/PMCORE-3058 (pull request #8272)
PMCORE-3058 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
d05cff26ca
@@ -3,6 +3,7 @@
|
|||||||
namespace ProcessMaker\Project;
|
namespace ProcessMaker\Project;
|
||||||
|
|
||||||
use BasePeer;
|
use BasePeer;
|
||||||
|
use Bootstrap;
|
||||||
use BpmnActivity as Activity;
|
use BpmnActivity as Activity;
|
||||||
use BpmnArtifact as Artifact;
|
use BpmnArtifact as Artifact;
|
||||||
use BpmnActivityPeer as ActivityPeer;
|
use BpmnActivityPeer as ActivityPeer;
|
||||||
@@ -31,11 +32,12 @@ use Criteria as Criteria;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use G;
|
use G;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use ResultSet as ResultSet;
|
use pmTablesProxy;
|
||||||
use ProcessMaker\Util\Common;
|
use Processes;
|
||||||
use ProcessMaker\Exception\ProjectNotFound;
|
use ProcessMaker\Exception\ProjectNotFound;
|
||||||
use ProcessMaker\Project\Adapter\BpmnWorkflow;
|
use ProcessMaker\Project\Adapter\BpmnWorkflow;
|
||||||
use Bootstrap;
|
use ProcessMaker\Util\Common;
|
||||||
|
use ResultSet as ResultSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Bpmn
|
* Class Bpmn
|
||||||
@@ -405,6 +407,20 @@ class Bpmn extends Handler
|
|||||||
if ($project = $this->getProject("object")) {
|
if ($project = $this->getProject("object")) {
|
||||||
$project->delete();
|
$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);
|
||||||
|
}
|
||||||
|
|
||||||
self::log("Remove Project Success!");
|
self::log("Remove Project Success!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user