Closed (fixed)
Project:
Subform
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2011 at 22:03 UTC
Updated:
30 May 2011 at 11:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
amitaibuDigging a bit more I see where it falls:
On the first form, we have all the required values in $form_state['input'], so in form_builder()
is executed.
However clicking on validate/ submit on the second subform doesn't populate $form_state['input'] properly (see images).
Comment #2
amitaibuAnd now I see why the $_POST values are different. The 2nd subform has
<form>tag, while the 1st one doesn't. (see image)Comment #3
amitaibuHa, I think I got it ;) -- change the subform's #theme_wrapper to container instead of form.
Comment #4
amitaibuBetter patch, it seems that this was supposed to work already, however in after_build we add #pre_render to $form instead of $element, resulting in never calling the pre-render function.
Comment #5
casey commentedCommitted, thanks!