Webform data tokens appear to only work on first reaction

Created on 28 February 2024, 9 months ago
Updated 24 April 2024, 7 months ago

Problem/Motivation

I have a rule with 2 reactions in it, and since we've updated to 7.x-1.7, the second reaction does not appear to see the webform submission token values.

I have tested re-ordering the reactions, and added debug logging, and can confirm, for instance, that [data:sid] is working in the first reaction, but is empty in the second

At this point, I may have to look into custom code to handle this, and move away from webform_rules here, but it's worth noting here as a bug, and I'm not sure why

Remaining tasks

Ensure that webform tokens are available for multiple rules reactions

πŸ› Bug report
Status

Active

Version

1.7

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States alimc29

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

Comments & Activities

  • Issue created by @alimc29
  • πŸ‡ΊπŸ‡ΈUnited States alison

    I think I'm having the same issue -- not totally sure yet, but I think maybe.

    And, I wonder if it could be related to this?
    πŸ› Submission tokens disappeared and stopped working Active

  • πŸ‡ΊπŸ‡ΈUnited States alison

    So, I'm still not sure if my issue is related, but maybe/probably it isn't -- it's a bit of a clunky, very old site and sometimes, especially when it comes to the webform/commerce/webform_rules/commerce_webform modules that are all in there, I struggle to discern which module is responsible for each part, BUT...

    I also had some log messages when I submitted the form -- did you?

    ANYWAY, .......I ended up downgrading this module to 7.x-1.6, and that fixed the problem for me. Icky, but effective :( Have you already tried that?

    -------

    P.S. The dblog messages I got:

    Notice: Undefined index: components in commerce_webform_get_products_from_webform_submission() (line 283 of /path/to/mysite/sites/all/modules/commerce_webform/commerce_webform.module).
    
    Warning: Invalid argument supplied for foreach() in commerce_webform_get_products_from_webform_submission() (line 285 of /path/to/mysite/sites/all/modules/commerce_webform/commerce_webform.module).
    
    Notice: Undefined index: sid in commerce_webform_order_create() (line 166 of /path/to/mysite/sites/all/modules/commerce_webform/commerce_webform.rules.inc).
    

    P.P.S. I'm cross-posting this update on πŸ› Submission tokens disappeared and stopped working Active

Production build 0.71.5 2024