mirror of https://github.com/MISP/MISP
chg: [workflowBlueprint] Don't attach module_data in blueprint by default
parent
a0ace85242
commit
85c1a75830
|
@ -153,6 +153,9 @@ class WorkflowsController extends AppController
|
|||
$modules = $this->Workflow->attachNotificationToModules($modules, $workflow);
|
||||
$this->loadModel('WorkflowBlueprint');
|
||||
$workflowBlueprints = $this->WorkflowBlueprint->find('all');
|
||||
$workflowBlueprints = array_map(function($blueprint) {
|
||||
return $this->WorkflowBlueprint->attachModuleDataToBlueprint($blueprint);
|
||||
}, $workflowBlueprints);
|
||||
$this->set('selectedWorkflow', $workflow);
|
||||
$this->set('workflowTriggerId', $trigger_id);
|
||||
$this->set('modules', $modules);
|
||||
|
|
|
@ -66,9 +66,9 @@ class WorkflowBlueprint extends AppModel
|
|||
$result['WorkflowBlueprint']['data'] = '{}';
|
||||
}
|
||||
$results[$k]['WorkflowBlueprint']['data'] = JsonTool::decode($result['WorkflowBlueprint']['data']);
|
||||
$results[$k] = $this->attachModuleDataToBlueprint($results[$k]);
|
||||
$blueprint = $this->attachModuleDataToBlueprint($results[$k]);
|
||||
if (!empty($results[$k]['WorkflowBlueprint']['data'])) {
|
||||
$results[$k]['WorkflowBlueprint']['mermaid'] = $this->getMermaidForData($results[$k]['WorkflowBlueprint']['data']);
|
||||
$results[$k]['WorkflowBlueprint']['mermaid'] = $this->getMermaidForData($blueprint['WorkflowBlueprint']['data']);
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
|
|
Loading…
Reference in New Issue