The reason is form_clean_id(NULL, TRUE) is never called like it would have been in a normal FAPI workflow if the ajax request was a POST. This patch calls it before drupal_prepare_form and stops FAPI from appending -1 to forms.

CommentFileSizeAuthor
form_clean_id.patch725 bytesandrewlevine

Comments

merlinofchaos’s picture

Status: Active » Fixed

Committed!

Status: Fixed » Closed (fixed)

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