fix: [modules] Added full attribute to full event enrichment's module query

pull/4832/head
iglocska 2019-07-02 09:20:22 +02:00
parent 9293a15e2f
commit c2bb2167ca
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {