MVC - ApiControllerBase.php / fix typo in searchRecordsetBase()

This commit is contained in:
Ad Schellevis 2022-10-06 22:16:28 +02:00
parent 7fec5111bd
commit 91d8b7f8bf

View File

@ -75,7 +75,7 @@ class ApiControllerBase extends ControllerRoot
}
$entry_keys = array_filter($entry_keys, function ($key) use ($searchPhrase, $filter_funct, $fields, $records) {
if (is_callable($filter_funct) && !$filter_funct($record)) {
if (is_callable($filter_funct) && !$filter_funct($records[$key])) {
// not applicable according to $filter_funct()
return false;
} elseif (!empty($searchPhrase)) {