mirror of https://github.com/MISP/MISP
Merge pull request #9266 from Wachizungu/fix-indexfilter-massage
fix: [CRUD-IndexFilter] correct index page filtering for REST request…pull/9254/head
commit
b99bfef287
|
@ -54,7 +54,7 @@ class IndexFilterComponent extends Component
|
|||
private function __massageData($data, $request, $paramArray)
|
||||
{
|
||||
$data = array_filter($data, function($paramName) use ($paramArray) {
|
||||
return !empty($paramArray[$paramName]);
|
||||
return in_array($paramName, $paramArray);
|
||||
}, ARRAY_FILTER_USE_KEY);
|
||||
|
||||
if (!empty($paramArray)) {
|
||||
|
|
Loading…
Reference in New Issue