Bug when using csrf and setDependentRelation

Hi Johnny, I noticed that when I have a setDependentRelation enabled and CSRF protection, the ajax search query filter doesn’t work for that column, it’s giving a 403 when doing the query. I had to manually add the csrf variable on the ajax request inside the Grocery Crud Enterprise JS.

Hello @gabe152006 ,

I confirm this bug. It is weird that I’ve missed that :thinking:. I will probably fix that for the next version.

Regards
Johnny

@johnny no worries! I thought it was strange too. Can you take a look at my other question about the setRelation and sorting?

Thank you so much!

Hello @gabe152006 ,

I’ve fixed the issue for the next version (2.9.1). As I understand you’ve already add it to your code so you have a work-around for now.

Regards
Johnny

Hello @johnny,

Yeah I’ve added it to my code. I hate having to modify core library files but it works for now.