mirror of https://github.com/MISP/MISP
fix: [modules] Added full attribute to full event enrichment's module query
parent
9293a15e2f
commit
c2bb2167ca
|
@ -5814,10 +5814,11 @@ class Event extends AppModel
|
|||
if (!empty($module['config'])) {
|
||||
$data['config'] = $module['config'];
|
||||
}
|
||||
$data['attribute'] = $attribute;
|
||||
$data = json_encode($data);
|
||||
$result = $this->Module->queryModuleServer('/query', $data, false, 'Enrichment');
|
||||
if (!$result) {
|
||||
throw new MethodNotAllowedException($type . ' service not reachable.');
|
||||
throw new MethodNotAllowedException(h($module['name']) . ' service not reachable.');
|
||||
}
|
||||
//if (isset($result['error'])) $this->Session->setFlash($result['error']);
|
||||
if (!is_array($result)) {
|
||||
|
|
Loading…
Reference in New Issue