Prepopulate fails in Drupal 10

Created on 5 October 2023, 9 months ago

Problem/Motivation

When trying to prepopulate Webform with URL that contains list of values for one field (multi-value field) you get error:

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "XXX" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 in vendor/symfony/http-kernel/HttpKernel.php).

See here: https://github.com/symfony/symfony/pull/41766

Steps to reproduce

  1. Create Webform with select field that allows multiple selections
  2. Enable prepopulate
  3. Try to prepopulate the Webform with array value in URL: https://URL_TO_FORM?field_name[]=xxx

Proposed resolution

How to fix: https://github.com/symfony/symfony/pull/41766#issuecomment-1481340584

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

🇫🇮Finland oakulm

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

Comments & Activities

Production build 0.69.0 2024