mirror of https://github.com/MISP/MISP
fix: [event:view] Correctly support the new `deleted` parameter behavior
parent
94332afbf6
commit
b73ed846ab
|
@ -1057,7 +1057,7 @@ class EventsController extends AppController
|
|||
$conditions['overrideLimit'] = 1;
|
||||
}
|
||||
if (isset($filters['deleted'])) {
|
||||
$conditions['deleted'] = $filters['deleted'] == 2 ? 0 : 1;
|
||||
$conditions['deleted'] = $filters['deleted'] == 2 ? 0 : [0, 1];
|
||||
}
|
||||
if (isset($filters['toIDS']) && $filters['toIDS'] != 0) {
|
||||
$conditions['to_ids'] = $filters['toIDS'] == 2 ? 0 : 1;
|
||||
|
@ -1509,7 +1509,7 @@ class EventsController extends AppController
|
|||
$conditions['includeAttachments'] = true;
|
||||
}
|
||||
if (isset($this->params['named']['deleted'])) {
|
||||
$conditions['deleted'] = $this->params['named']['deleted'] == 2 ? 0 : 1;
|
||||
$conditions['deleted'] = $this->params['named']['deleted'] == 2 ? 0 : [0, 1];
|
||||
}
|
||||
if (isset($this->params['named']['toIDS']) && $this->params['named']['toIDS'] != 0) {
|
||||
$conditions['to_ids'] = $this->params['named']['toIDS'] == 2 ? 0 : 1;
|
||||
|
|
Loading…
Reference in New Issue