mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Variable name change
This commit is contained in:
parent
b298e83a0f
commit
985abc7557
@ -399,7 +399,7 @@ abstract class MultiForm extends Form {
|
|||||||
if($step->getNextStep()) {
|
if($step->getNextStep()) {
|
||||||
// Is this step in the DB? If it is, we use that
|
// Is this step in the DB? If it is, we use that
|
||||||
if($nextStep = $step->getNextStepFromDatabase()) {
|
if($nextStep = $step->getNextStepFromDatabase()) {
|
||||||
$templateData = array(
|
$record = array(
|
||||||
'ID' => $nextStep->ID,
|
'ID' => $nextStep->ID,
|
||||||
'ClassName' => $nextStep->class,
|
'ClassName' => $nextStep->class,
|
||||||
'Title' => $nextStep->getTitle(),
|
'Title' => $nextStep->getTitle(),
|
||||||
@ -409,13 +409,13 @@ abstract class MultiForm extends Form {
|
|||||||
} else {
|
} else {
|
||||||
// If it's not in the DB, we use a singleton instance of it instead - this step hasn't been accessed yet
|
// If it's not in the DB, we use a singleton instance of it instead - this step hasn't been accessed yet
|
||||||
$nextStep = singleton($step->getNextStep());
|
$nextStep = singleton($step->getNextStep());
|
||||||
$templateData = array(
|
$record = array(
|
||||||
'ClassName' => $nextStep->class,
|
'ClassName' => $nextStep->class,
|
||||||
'Title' => $nextStep->getTitle()
|
'Title' => $nextStep->getTitle()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Add the array data, and do a callback
|
// Add the array data, and do a callback
|
||||||
$stepsFound->push(new ArrayData($templateData));
|
$stepsFound->push(new ArrayData($record));
|
||||||
$this->getAllStepsRecursive($nextStep, $stepsFound);
|
$this->getAllStepsRecursive($nextStep, $stepsFound);
|
||||||
}
|
}
|
||||||
// Once we've reached the final step, we just return what we've collected
|
// Once we've reached the final step, we just return what we've collected
|
||||||
|
Loading…
Reference in New Issue
Block a user