Hi guys. There is an issue with the approach with the profile2 form used in profile2_page module.
The callback is defined in hook_forms(), which is used in drupal_retrieve_form, but the callback is written in the include file, which is included only in the entity callback function and therefore not added in the ajax callback.

CommentFileSizeAuthor
profile2_page_fails_with_ajax.patch702 bytessimeonkesmev

Comments

simeonkesmev’s picture

Title: FAPI AJAX fails in profile2_form. » FAPI AJAX fails with profile2_form in profile2_page module.
juanjo4’s picture

Hi all,

this patch worked for me! Thanks SimeonKesmev.

Juan

  • Spleshka committed 35cabb6 on 7.x-1.x
    Issue #2461867 by SimeonKesmev, juanjo4, Spleshka: FAPI AJAX fails with...
spleshka’s picture

Status: Needs review » Fixed

Hi guys, thanks for the issue and for the attached patch. I think it definitely makes sense to include that file into the form loader. I've slightly adjusted the patch and commited it to 7.x-1.x.

Status: Fixed » Closed (fixed)

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