When someone has an inline entity form field, it makes a system/ajax callback which does not provide a 'step' REQUEST nor does it provide a field name
I believe you had this on your @todo on line 529 or so

function multistep_get_step($type) {
if (isset($_REQUEST['step'])) {
        // Start New code to be added below
        // Save request in session variable just in case there is an inline entity form on same page that does system/ajax call which basically destroys first request
	$_SESSION['multi_step'] = array();
	$_SESSION['multi_step']['step'] = $_REQUEST['step'];
        // End new code

    return $_REQUEST['step'];
 }

Should also add code on line 644 or so for the function multistep_get_field_step($field_name, $type)

// FIXME: we should in fact throw an error or so
//return multistep_get_first($type);
$step = $_SESSION['multi_step']['step'];
return $step;

I had a really hard time trying to figure out why multistep kept going back to step number 2 when an inline entity form field was a part of a multi-step form.

Comments

sydkoh’s picture

Issue summary: View changes
sydkoh’s picture

Issue summary: View changes