You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Book resource, in which there are 2 MorphToMany fields, each with different relation but both linked to User resource.
Each of the relations have pivot columns which are filterable (timestamp columns on pivot tables).
When page is loaded, filters from one relation are duplicated to another.
From my understanding, this happens because there are 2 endpoint calls for getting each of the fields' filters ->
and the payload from the latter one overrides filters for both relations.
I guess this happens because Nova binds filters by resource (in FilterController class - Nova::resourceForKey($this->route('resource')); - it resolves as User for both relations)
This issue reproduces specifically in cases with filters on pivot columns
The text was updated successfully, but these errors were encountered:
Please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example)
Description:
I have Book resource, in which there are 2 MorphToMany fields, each with different relation but both linked to User resource.
Each of the relations have pivot columns which are filterable (timestamp columns on pivot tables).
When page is loaded, filters from one relation are duplicated to another.
From my understanding, this happens because there are 2 endpoint calls for getting each of the fields' filters ->
and the payload from the latter one overrides filters for both relations.
I guess this happens because Nova binds filters by resource (in FilterController class - Nova::resourceForKey($this->route('resource')); - it resolves as User for both relations)
This issue reproduces specifically in cases with filters on pivot columns
The text was updated successfully, but these errors were encountered: