Hi, I’m having an issue with the Plot Branching, I’m finding that my steps within the branch are getting lost. I believe they’re being overwritten by the steps after the branch. My steps are:
'steps' => array(
array( 'customerSearch' => array( 'customerSearchForm', 'customerSearchResultForm' ) ),
I’m using BRANCH_SELECT and BRANCH_DESELECT to enable or disable the customer search branch based on which path the user came into the wizard. However the resulting steps when enabled are:
The customerSearchResultForm is missing. When doing some digging I found that _parseSteps did:
$parsed[$label] = $step;
Where $label is the index of the step, this means though that as the steps are built the following happens:
LOOP1: 0 => staffForm
LOOP2: 0 => staffForm, 1 => customerSearchForm, 2 => customerSearchResultForm
LOOP3: 0 => staffForm, 1 => customerSearchForm, 2 => customerForm
If I remove the $label from the $parsed[$label] = $step then it makes sure all new steps are always appended.
Am I just doing it wrong?