_form_builder_handle_input_element() calls drupal_array_nested_key_exists() that expect $form_state['values'] to be an array.

CommentFileSizeAuthor
init-values.patch397 bytesamitaibu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

casey’s picture

Status: Needs review » Needs work

drupal_rebuild_form() doesn't contain such thing. I like to reuse as much fapi as possible and I found out the code was entirely equal so I replaced it with a call to drupal_rebuild_form().

So we need to find out why subforms get that error, while normal forms don't.

amitaibu’s picture

Status: Needs work » Closed (won't fix)

user-modal seems to work ok without that, after latest changes in subfdorm, so closing.