mirror of https://github.com/MISP/MISP
fix: Fixed the CSV field name for date
parent
35ad0f2f57
commit
6cd0a29f02
|
@ -2302,6 +2302,9 @@ class EventsController extends AppController {
|
|||
}
|
||||
$headers = array_merge($requested_attributes, $requested_obj_attributes);
|
||||
if ($includeContext) $headers = array_merge($headers, array_keys($this->Event->csv_event_context_fields_to_fetch));
|
||||
foreach ($headers as $k => $v) {
|
||||
if ($v == 'timestamp') $headers[$k] = 'date';
|
||||
}
|
||||
$headers = implode(',', $headers);
|
||||
$final = array_merge(array($headers), $final);
|
||||
$final = implode(PHP_EOL, $final);
|
||||
|
|
Loading…
Reference in New Issue