Closed (fixed)
Project:
Webform Rules
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2012 at 15:53 UTC
Updated:
28 Sep 2012 at 16:41 UTC
Hello,
I noticed a problem when creating a Webform having questions before and after a page break and having selected the option: Webform -> Form settings -> Advanced Settings -> Automatically save as draft between pages.
The resulting $data array to be used in rules, will only contain the answers before the page break and will omit the answers after the page break.
Kind regards.
Comments
Comment #1
stborchertUnfortunately Webform is not including all the components within the submission object when using this setting.
There are 2 possibilities:
1.) file a request directly against Webform (I tend to say webform_submission_data() does not return all data ...)
2.) try to include the values of all submitted components instead of only those listed in
$submission->dataThe latter could be done by changing line 83 of webform_rules.module to this:
Could you please try if this works for you on your specific form and on other webforms?
Comment #2
mvochten commentedThe suggested change of line 83 of webform_rules.module seems to have solved the problem for all my forms.
Thanks!
Comment #3
stborchertFixed for this specific case.