mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
BUGFIX getCurrentStep should be called as a method, not a property
This commit is contained in:
parent
b0f45b505b
commit
2385c23d63
@ -337,7 +337,7 @@ abstract class MultiForm extends Form {
|
||||
* @param object $form The form that the action was called on
|
||||
*/
|
||||
public function finish($data, $form) {
|
||||
if(!$this->getCurrentStep->isFinalStep()) {
|
||||
if(!$this->getCurrentStep()->isFinalStep()) {
|
||||
Director::redirectBack();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user