diff --git a/src/Listener/ViewSearchListener.php b/src/Listener/ViewSearchListener.php index e2c010f4..a8609530 100644 --- a/src/Listener/ViewSearchListener.php +++ b/src/Listener/ViewSearchListener.php @@ -70,14 +70,16 @@ protected function _deriveFields() $table = $this->_table(); $request = $this->_request(); - if (!method_exists($table, 'searchConfiguration')) { - return []; + $filters = null; + if (method_exists($table, 'searchConfiguration')) { + $filters = $table->searchConfiguration(); + } else { + $filters = $table->searchManager(); } - $filters = $table->searchConfiguration(); + $fields = []; $schema = $table->schema(); - $fields = []; foreach ($filters->all() as $filter) { if ($filter->config('form') === false) { continue;