Skip to content

Table\Column\FilterModel throws error on json type fields #1744

@DarkSide666

Description

@DarkSide666

If we have type=>json field in model and for some strange reason add it as column in grid and enable filtering, then Table\Column\FilterModel throws error

Critical Error
ErrorException: Undefined index: json

in vendor/atk4/ui/src/Table/Column/FilterModel.php:75

That's because filtering for this field type is not implemented and that's kind of understandable, but at least it shouldn't throw such ugly exception. Better would be to simply not add filtering in this column.

Probably same happens with fields type=>object and maybe enum and values type of data fields.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions