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
When adding a multi-select field type to a ModelAdmin search form through modifying the SearchContext in GridFieldFilterHeader, the multi-select field submits an string of comma separated javascript type objects ([object Object]).
I've tested this with ListboxField and TagField (silverstripe/tagfield) with similar results. Interestingly, CheckboxSetField which is also marked as php $schemaDataType = FormField::SCHEMA_DATA_TYPE_MULTISELECT submits a string of comma separated keys when an array is set as the source.
Module version(s) affected
5.2.22
Description
When adding a multi-select field type to a ModelAdmin search form through modifying the
SearchContext
inGridFieldFilterHeader
, the multi-select field submits an string of comma separated javascript type objects ([object Object]).I've tested this with
ListboxField
andTagField
(silverstripe/tagfield) with similar results. Interestingly,CheckboxSetField
which is also marked asphp $schemaDataType = FormField::SCHEMA_DATA_TYPE_MULTISELECT
submits a string of comma separated keys when an array is set as the source.How to reproduce
Basic example
Form Data Payload:
filter[members][Test]: [object Object],[object Object]
Custom SearchContext Example
Possible Solution
No response
Additional Context
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: