chg: [trigger:enrichment-before-query] Include module being queried in triggerData

pull/8692/head
Sami Mokaddem 2022-10-21 08:46:10 +02:00
parent eb2afae193
commit 69a555053d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -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';