Merged in zeitmaster/processmaker/HOR-1907 (pull request #4947)
HOR-1907
This commit is contained in:
@@ -135,8 +135,19 @@ class GranularImporter
|
||||
$data['tables']['workflow']['reportTablesFields'] : [];
|
||||
break;
|
||||
default:
|
||||
$objectList[$nameObject] = isset($data['tables']['plugins'][strtolower($nameObject)]) ?
|
||||
$data['tables']['plugins'][strtolower($nameObject)] : '';
|
||||
$prjUID = isset($data['tables']['workflow']['process']['PRO_UID'])
|
||||
?$data['tables']['workflow']['process']['PRO_UID']
|
||||
:$data['tables']['workflow']['process'][0]['PRO_UID'];
|
||||
$objectList[$nameObject] = [];
|
||||
$objectList[$nameObject]['metadata'] = [
|
||||
'PRJ_UID' => $prjUID
|
||||
];
|
||||
foreach ($data['tables']['plugins'] as $pluginKey => $pluginTable) {
|
||||
$key = explode(".", $pluginKey);
|
||||
if ($key[0]===strtolower($nameObject)) {
|
||||
$objectList[$nameObject][$key[1]] = $pluginTable;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return $objectList;
|
||||
|
||||
@@ -34,7 +34,13 @@ class PluginMigratorAdapter implements Exportable, Importable
|
||||
|
||||
public function export($prj_uid)
|
||||
{
|
||||
return $this->migrator->export($prj_uid);
|
||||
$data = $this->migrator->export($prj_uid);
|
||||
foreach ($data['plugin-data'] as $key => $plugin) {
|
||||
$newKey = str_replace("MIGRATOR", "", strtoupper(get_class($this->migrator))).'.'.$key;
|
||||
$data['plugin-data'][$newKey] = $plugin;
|
||||
unset($data['plugin-data'][$key]);
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function afterExport()
|
||||
|
||||
Reference in New Issue
Block a user