This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

maycon.ghizzi34750
maycon.ghizzi34750

I have a config_filters.yaml with relation filters, like this example:

scopes:
  alvcon_fase:
    label: Fase
    modelClass: Eseti\planejamento\Models\AlvconFase
    conditions: alvcon_fase_id in (:filtered)
    nameFrom: nome

everything appears be fine, but dont filter.

The ajax is called fine with all headers and values. Anothers kind of filters work perfect, like check, groups, but relations dont. Any ideia ?

if I capture $query in Controller->listExtendQuery($query) { $query->toSql(); }; no sql changes for relations.

Obs. I have updated my october and laravel recently.

Last updated

daftspunky
daftspunky

Everything that you've provided here looks fine and it should work. I suspect that because it doesn't appear in the toSql output that something might be interfering.

There may be some other interaction with the List query and the AlvconFase model. This is something that would require us to look at your code and to investigate. We offer premium support services that you are welcome to use.

maycon.ghizzi34750
maycon.ghizzi34750

Thanks, After some hours trying I found a solution, rollback storm.min.js in system folder. i dont know whats problem exactly (no javascript errors) but solve.

Last updated

daftspunky
daftspunky

Sorry to hear you spent hours on this. Hopefully, it will be fixed in the next update.

I won't try to sell it too much, but perhaps consider premium support for next time as we can locate these issues much faster for you. Of course, it is always your choice, perhaps learning experiences are equally as valuable! :-)

Thanks for using October CMS

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.