fix: [event:publish] Call correct trigger

pull/8530/head
Sami Mokaddem 2022-07-29 10:58:39 +02:00
parent 64f1949b82
commit b146902a01
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -4534,7 +4534,7 @@ class Event extends AppModel
'id' => $id,
'message' => __('Publishing stopped by a blocking workflow.'),
];
$success = $this->executeTrigger('publish', $fullEvent[0], $workflowErrors, $logging);
$success = $this->executeTrigger('event-publish', $fullEvent[0], $workflowErrors, $logging);
if (empty($success)) {
$errorMessage = implode(', ', $workflowErrors);
return $errorMessage;