BUGFIX We now call $nextStep->Link and $prevStep->Link() instead of $this->getCurrentStep()->Link() on MultiForm->next() and MultiForm->prev() which is confusing, and doesn't always work

This commit is contained in:
Sean Harvey 2008-06-23 05:06:36 +00:00
parent 0f2bfb2cc5
commit 3b9f092ac1

View File

@ -399,7 +399,7 @@ abstract class MultiForm extends Form {
$this->setCurrentStep($nextStep);
// Redirect to the next step
Director::redirect($this->getCurrentStep()->Link());
Director::redirect($nextStep->Link());
return;
}
@ -432,7 +432,7 @@ abstract class MultiForm extends Form {
$this->setCurrentStep($prevStep);
// Redirect to the previous step
Director::redirect($this->getCurrentStep()->Link());
Director::redirect($prevStep->Link());
return;
}