Fix preserve URL query parameters deafult form submission

Created on 4 October 2023, over 1 year ago

Problem/Motivation

When saving the SimpleSearchFormBlock without setting "Preserve query parameters from URL", an error occurs:
TypeError: explode(): Argument #2 ($string) must be of type string, array given in explode()

The default value for the field is an empty array, but the expected input is a comma separated string. So if a value is never set then the form tries to process the default empty array like a string.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jayhuskins

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024