fix: [event-report:publishing] Do not reset the event timestamp when updating an event report

pull/9679/merge
Sami Mokaddem 2024-05-13 10:42:39 +02:00
parent 5596283b4f
commit 76322cdbfb
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 1 deletions

View File

@ -199,7 +199,9 @@ class EventReport extends AppModel
$errors = $this->saveAndReturnErrors($report, ['fieldList' => self::CAPTURE_FIELDS], $errors);
if (empty($errors)) {
$this->Event->captureAnalystData($user, $report['EventReport'], 'EventReport', $report['EventReport']['uuid']);
$this->Event->unpublishEvent($eventId);
if (!$fromPull) {
$this->Event->unpublishEvent($eventId);
}
}
return $errors;
}