Closed (won't fix)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2013 at 13:42 UTC
Updated:
16 Feb 2014 at 03:31 UTC
Jump to comment: Most recent
Comments
Comment #1
socialnicheguru commentedwhat effect does this have if any?
Comment #2
chalk commentedIn next step $component_value is sent to _webform_client_form_add_component() function (1941 line). Sure, in _webform_client_form_add_component() we can again retrieve value from $form_state, but code doesn't seems good :)
And I use $component_value in one more patch, see also please #2153723: Form_state values in _webform_render_component implementations.
Comment #3
quicksketchI think you are mistaken. In the submit handler for the form, the $form_state['values'] array is rekeyed here:
This could be a side effect of your other patch at #2153723: Form_state values in _webform_render_component implementations. As brought up in that issue, we're not likely to change the 3.x branch value handling precisely because of side-effects like this.
As mentioned in that issue, the best thing to do here to have the values handled more consistently is to upgrade to Webform 4.x. It made this an explicit API change: https://drupal.org/node/1609324#submission-structure