Table widget custom filter does not update table result
I've been asked by my client to have an overview table with the most popular coupons on our site through a list with filters.
Therefore i proceeded to create the following table widget
6 Replies
however when i try to add this custom filter with a date range the table does not update itself , i can confirm the query is correct because i logged the last return query with a toRawSql() and pasted into my db gui and the results are correct
anyone ?
Does the
store_id
filter work as expected?yes, actually i added it to double check if the filters in general were working properly
Hmm this is weird. I tried a simplified version of your setup and it seems to work as expected.
There's nothing obviously wrong with this so I guess follow general debugging steps?
Do you have debugbar enabled? Can you check the request that is sent. Ideally, check wtf is going on using Xdebug.
oddly when i log the query it's correct but when it's applied to the table it's completely ignored, maybe there's something i'm missing on how the withCount is handled internally by filament
try using
->modifyBaseQueryUsing
instead of ->query
so