From 3b9f092ac152dc63cdf7712d551134dc14d67e9b Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Mon, 23 Jun 2008 05:06:36 +0000 Subject: [PATCH] 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 --- code/MultiForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/MultiForm.php b/code/MultiForm.php index 58a747b..66db91f 100644 --- a/code/MultiForm.php +++ b/code/MultiForm.php @@ -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; }