Only unprocessed form_state is stored in drupal_rebuild_form().

Created on 15 January 2020, over 4 years ago
Updated 3 May 2024, 30 days ago

It seems drupal_process_form() and drupal_rebuild_form() differ in how they handle the form_state in the form_cache. While the former stores the form_cache from after the form being processed the latter stores it before the form elements are processed. This means data process handlers can’t consistently store data in the $form_state at least in multi-step forms (webform in my case).

πŸ› Bug report
Status

Active

Version

7.0 ⚰️

Component
FormΒ  β†’

Last updated about 2 hours ago

Created by

πŸ‡¦πŸ‡ΉAustria torotil

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.69.0 2024