mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
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:
parent
0f2bfb2cc5
commit
3b9f092ac1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user