Closed (won't fix)
Project:
Webform Rules
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2013 at 14:32 UTC
Updated:
21 Mar 2013 at 16:21 UTC
In webform_rules_rules_invoke_event(), submission data is converted to an array keyed on form_key.
This assumes that form_key will be unique in the webform, but this needn't be if e.g. fieldsets are used.
(If you clone a fieldset full of components, the components in the cloned fieldset will have the same form_key.)
Comments
Comment #1
stborchertHm, without having unique form_key how would you know which one to print?
I'm tending to set this to "won't fix" because (not only) the token integration is heavily bound to the form_key ... if there will be multiple components using the same key, at least token generation will fail.
Comment #2
grahamcI believe Webform's own tokens require you to use the full path to the nested component, e.g. [submission:values:parent_key:component_key].
Comment #3
stborchertNope, Webform Rules uses tokens like
[data:{component}-value]so it will not work using the same component name ("form_key") for different components.