This repository was archived by the owner on Jan 21, 2020. It is now read-only.
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
DB-Connected (MySQL) modify filters UI-problem #377
Open
Description
Fresh Apigility 1.4.1 installation.
- Create a new Database Connected service from a MySQL table (PDO)
- Try to modify automatically generated filters from admin UI
- Fails, nothing happens other than new errors in browser console "Error: k.filter.options is undefined" (Firefox)
I tracked this down to module/API_NAME/config/module.config.php, where in input_filter_specs validator fields are generated like this:
0 => [
'name' => 'column_name',
'required' => false,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
],
1 => [
'name' => \Zend\Filter\StripTags::class,
],
],
So, no options... I got this fixed by manually edition all the validator fields to this format:
0 => [
'name' => 'column_name',
'required' => false,
'filters' => [
0 => [
'name' => \Zend\Filter\StringTrim::class,
'options' => [],
],
1 => [
'name' => \Zend\Filter\StripTags::class,
'options' => [],
],
],
Now UI for modifying filters works.
Metadata
Metadata
Assignees
Labels
No labels