Active
Project:
Multistep (D7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2013 at 19:52 UTC
Updated:
6 Nov 2013 at 19:58 UTC
Jump to comment: Most recent
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
Comment #1
sydkoh commentedComment #2
sydkoh commented