sethbr11
Filter Not Returning Anything When Nothing is Selected
For anyone else with the same problem, I guess the filter just gets passed as "values" instead of the actual type of value, which in my case would have been "plan_id". Here's what a log showed:
Filter data: {"values":[]}
. From there, I adjusted my code to get the values with $planIds = Arr::get($data, 'values', []);
and then check if there was anything there or not with if (!empty($planIds))
7 replies