afform: Display option "Remember Filters" not keeping value
Overview
The display option "Remember Filters" in search displays does not retain its value when the configuration form is being reloaded.
Reproduction steps
- Create a SearchKit search with a search form
- Add a form display (e.g. Table)
- add some exposed filters
- Check Remember Filters
- Reload the configuration form for that form display
Current behaviour
The option seems to be stored and filter values are being stored per user. The option field (checkbox) however is not set when reloading the config form of the form display. Saving the config form without changing that option still seems to retain its value (still storing filter values). So the config form does not reflect the actual option value.
Expected behaviour
The option should be set when re-visiting the form display config form. Saving the form should respect the value (unchecked: unset the option).
Environment information
- Browser: Chromium 123.0.6312.58
- CiviCRM: 5.71.0