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'm using a collection for my datasource and trying to use the Filter::datepicker(), but getting an array index error.
The collection() function of the DatePicker class tries to access the $value passed as an indexed array, while the builder() function looks at it as an associative array with 'start_date' and 'end_date' keys. The value being passed in both cases is an associative array with those keys.
I think the collection() function should be accessing the $values array in the same way as the builder() function.
Thanks in advance for any direction you can give, and for providing an awesome tool :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm using a collection for my datasource and trying to use the Filter::datepicker(), but getting an array index error.
The collection() function of the DatePicker class tries to access the $value passed as an indexed array, while the builder() function looks at it as an associative array with 'start_date' and 'end_date' keys. The value being passed in both cases is an associative array with those keys.
I think the collection() function should be accessing the $values array in the same way as the builder() function.
Thanks in advance for any direction you can give, and for providing an awesome tool :)
Beta Was this translation helpful? Give feedback.
All reactions