Webform variants don't respect Computed Twig

Created on 11 August 2023, over 1 year ago
Updated 7 April 2024, about 1 year ago

Problem/Motivation

If you create a Computed Twig field, and change the Twig template in a variant, the value will be recorded correctly in the db, but the results of the original Twig template will be passed to the webform handlers.

Steps to reproduce

* Create a webform with a Computed Twig field.
* Create a variant, and change the template for the Computed Twig field.

Proposed resolution

We need to apply the variants when getting the data during validation.

🐛 Bug report
Status

Needs review

Version

6.2

Component

Code

Created by

🇺🇸United States MegaphoneJon

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

Merge Requests

Comments & Activities

  • Issue created by @MegaphoneJon
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Patch Failed to Apply
  • First commit to issue fork.
  • Merge request !353Update WebformSubmission.php → (Open) created by djsagar
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    537 pass
  • 🇮🇳India djsagar

    Created MR, kindly review.

  • 🇺🇸United States jrockowitz Brooklyn, NY
  • Pipeline finished with Success
    about 1 year ago
    Total: 2158s
    #140262
  • Pipeline finished with Failed
    6 months ago
    Total: 587s
    #313545
  • Pipeline finished with Skipped
    6 months ago
    #315783
  • Pipeline finished with Success
    6 months ago
    Total: 768s
    #316928
  • Pipeline finished with Canceled
    6 months ago
    Total: 421s
    #320288
  • Pipeline finished with Skipped
    6 months ago
    #320309
  • Pipeline finished with Canceled
    6 months ago
    Total: 1262s
    #320295
  • Pipeline finished with Success
    3 months ago
    Total: 169s
    #378930
  • Pipeline finished with Failed
    3 months ago
    Total: 329s
    #382126
  • Pipeline finished with Canceled
    3 months ago
    Total: 109s
    #382130
  • Pipeline finished with Failed
    3 months ago
    Total: 282s
    #382131
  • Pipeline finished with Failed
    3 months ago
    Total: 668s
    #382707
  • Pipeline finished with Canceled
    3 months ago
    Total: 208s
    #382712
  • Pipeline finished with Canceled
    3 months ago
    Total: 63s
    #382713
  • Pipeline finished with Failed
    3 months ago
    Total: 328s
    #382714
  • Pipeline finished with Canceled
    3 months ago
    Total: 1155s
    #382716
  • Pipeline finished with Success
    3 months ago
    Total: 909s
    #382725
Production build 0.71.5 2024