fix: [internal] Event ID translator

pull/8173/head
Jakub Onderka 2022-02-26 09:37:27 +01:00
parent 16077d0237
commit 5ec36f8d4b
1 changed files with 5 additions and 1 deletions

View File

@ -1363,7 +1363,11 @@ class Event extends AppModel
if (empty($data)) {
return null;
}
return $data;
// Old format used by old MISP version
if (isset($data['id'])) {
return $data;
}
return $data[0];
}
public function quickDelete(array $event)