Filter for field from related table

This issue affects filter functionality when first item in fields list is a field from a related table (added by setRelation function). In this case, at the first time opening the filter window, value field is not avaiable.

I’m using Grocery CRUD Enterprise version 2.8.7 with CodeIgniter 3.1.11 and PHP 7.3.27.

1 Like

Hello @dhyanan73 and welcome to our new forums :hugs:

I can reproduce the issue and I will try to fix that for the next version release. In any case I will inform this post.

At the meanwhile as a work-around if this is an important functionality for your CRUD and you can’t change the ordering of the fields then you also consider to add the below line:

$crud->fieldType('group', 'relational_native');

that will actually transform the searchable dropdown list into a native one.