mirror of https://github.com/MISP/MISP
fix: [API] csv export incorrect handling of include context parameter if it was pushed and set to 0
parent
ccd07a8957
commit
f6df9c2767
|
@ -201,7 +201,7 @@ class CsvExport
|
|||
foreach ($requested_obj_attributes as $obj_att) {
|
||||
$this->requested_fields[] = $obj_att;
|
||||
}
|
||||
if (isset($options['filters']['includeContext'])) {
|
||||
if (!empty($options['filters']['includeContext'])) {
|
||||
foreach ($this->event_context_fields as $event_context_field) {
|
||||
$this->requested_fields[] = $event_context_field;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue