On a clean install i made 3 profile types (one, two, three) and set up two extra steps (step2, step3). I've attached profile "three" to step3, profile "two" to step2, and profile "one" to the "register" step. When i do a test registration process, i find that no data has been saved to the profile "one".

How can it be fixed?

Comments

fricike’s picture

Issue summary: View changes
gskharmujai’s picture

great.. so i'm not the only one having this problem with profile2 .

My fix for this issue is would be to create a custom module. and include a new submit handler in in the
step_form_user_register_form_alter function.

$form['#submit'] = array(
    'user_register_submit',
    'custom_module_step_user_register',
    'ctools_wizard_submit',
    'step_user_register_submit',
  );

Inside the submit handler, include the code from profile2_form_submit_handler() and with a minor customization to add a condition to process only the first entry in $form_state['profiles'].

Just a temporary solution though i would love to see a permanent fix for this issue.

mokargas’s picture

Also got this. I'll try your idea gskharmujai

purushotam.rai’s picture

Status: Active » Closed (duplicate)

Hi,

This issue has been fixed in the patch implemented at https://www.drupal.org/node/2510732.

purushotam.rai’s picture