HOR-2923
Import/Export of a plugin does not work correctly
This commit is contained in:
@@ -14,6 +14,7 @@ class GranularImporter
|
|||||||
|
|
||||||
protected $factory;
|
protected $factory;
|
||||||
protected $data;
|
protected $data;
|
||||||
|
protected $regeneratedUids;
|
||||||
/**
|
/**
|
||||||
* GranularImporter constructor.
|
* GranularImporter constructor.
|
||||||
*/
|
*/
|
||||||
@@ -140,7 +141,8 @@ class GranularImporter
|
|||||||
:$data['tables']['workflow']['process'][0]['PRO_UID'];
|
:$data['tables']['workflow']['process'][0]['PRO_UID'];
|
||||||
$objectList[$nameObject] = [];
|
$objectList[$nameObject] = [];
|
||||||
$objectList[$nameObject]['metadata'] = [
|
$objectList[$nameObject]['metadata'] = [
|
||||||
'PRJ_UID' => $prjUID
|
'PRJ_UID' => $prjUID,
|
||||||
|
'REGENERATED_UIDS' => $this->regeneratedUids
|
||||||
];
|
];
|
||||||
foreach ($data['tables']['plugins'] as $pluginKey => $pluginTable) {
|
foreach ($data['tables']['plugins'] as $pluginKey => $pluginTable) {
|
||||||
$key = explode(".", $pluginKey);
|
$key = explode(".", $pluginKey);
|
||||||
@@ -325,6 +327,7 @@ class GranularImporter
|
|||||||
$newData['tables']['workflow'] = $arrayWorkflowTables;
|
$newData['tables']['workflow'] = $arrayWorkflowTables;
|
||||||
$newData['tables']['plugins'] = isset($data["tables"]["plugins"]) ? $data["tables"]["plugins"] : [];
|
$newData['tables']['plugins'] = isset($data["tables"]["plugins"]) ? $data["tables"]["plugins"] : [];
|
||||||
$newData['files']['workflow'] = $arrayWorkflowFiles;
|
$newData['files']['workflow'] = $arrayWorkflowFiles;
|
||||||
|
$this->regeneratedUids = $result;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'data' => $newData,
|
'data' => $newData,
|
||||||
|
|||||||
Reference in New Issue
Block a user