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

Comments

alimc29 created an issue.

alison’s picture

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?
#3425049: Submission tokens disappeared and stopped working

alison’s picture

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 #3425049: Submission tokens disappeared and stopped working

-------

EDIT: Forgot to mention --
When I updated webform_rules (7.x-1.6 => 7.x-1.7), I also updated webform (7.x-4.25 => 7.x-4.26) -- I tried downgrading webform back to 7.x-4.25, but my shopping cart was still broken, so then I tried downgrading webform rules, and that worked. (I have no recent updates to commerce or commerce_webform or rules.)