Afform: Select element does not seem to properly pass filter values
Overview
When a select element is used for a boolean field (e.g. contribution.is_test
) the value(s) are not passed and result in empty results.
https://chat.civicrm.org/civicrm/pl/9613mtpi6j8ypxf879p7eyyz5a
Possibly related #3449 (closed) and #3450 (closed)
Reproduction steps
See chat link ↑
Current behaviour
Looking at the browser requests, it seems that when select is used it passes filter data like:
filters: { is_test: [ "false" ] }
Correct filter should be:
filters: { is_test: [ false ] }
- CiviCRM: 5.47.4, 5.48.2
- CMS: D7