form_key renamed during webform import

Created on 27 September 2021, about 3 years ago
Updated 26 July 2023, over 1 year ago

Problem/Motivation

Form elements that have parent are renamed, by adding '_' and pid during webform migration (D7Webform.php lines 243-245.
So during submission migration, wrong form_key are used, and no values are displayed.

Steps to reproduce

In drupal 7 create a webform with elements regrouped under groups (like in 2021-09-27 16_19_25-Formulaire Maillots.png screenshot)
Migrate to Drupal 8. Most fieldnames are renamed (see 2021-09-27 16_24_24-Maillots 2020 _ verif2.png).
For example taille_8ans become taille_8ans_13, but remis stay remis.

During submission import values submitted are affected to orignal fieldname.

Proposed resolution

During submission import search webform elements named with the original fieldname + '_' and pid

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France olivierh65

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024