mirror of https://github.com/MISP/MISP
chg: [trigger:enrichment-before-query] Include module being queried in triggerData
parent
eb2afae193
commit
69a555053d
|
@ -271,6 +271,7 @@ class Module extends AppModel
|
|||
public function queryModuleServer(array $postData, $hover = false, $moduleFamily = 'Enrichment', $throwException = false, $triggerData=[], $skipTrigger=false)
|
||||
{
|
||||
if ($moduleFamily == 'Enrichment' && empty($skipTrigger)) {
|
||||
$triggerData['_module'] = $postData['module'];
|
||||
$success = $this->__prepareAndExecuteTrigger($postData, $triggerData);
|
||||
if (!$success) {
|
||||
$trigger_id = 'enrichment-before-query';
|
||||
|
|
Loading…
Reference in New Issue