Currently when a subform needs a rebuild we just call drupal_rebuild_form() without adding our own subform specific alterations.

Comments

casey’s picture

Status: Active » Fixed

Rebuild needed to be propagated all up to the wrapper form to work properly.

casey’s picture

Status: Fixed » Active

Currently testing node forms as subforms and there still seem to be problems.

casey’s picture

Found part of the issue: sometimes ajax callbacks only render part of a form. #name of input elements however are altered in a #pre_render callback set on the subform element. Instead we could add a #pre_render callback to all elements in the (sub)form.

casey’s picture

Status: Active » Fixed

Lets consider this fixed for now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.