mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Revert last change
This commit is contained in:
parent
3872ca004c
commit
ff9662f9f5
@ -105,8 +105,10 @@ abstract class MultiForm extends Form {
|
|||||||
// Set up validator from the form step class
|
// Set up validator from the form step class
|
||||||
$this->validator = $currentStep->getValidator();
|
$this->validator = $currentStep->getValidator();
|
||||||
|
|
||||||
// Load existing data into the form (CAUTION: loadData() MUST unserialize first!)
|
// If there is form data, we populate it here (CAUTION: loadData() MUST unserialize first!)
|
||||||
$this->loadDataFrom($currentStep->loadData());
|
if($currentStep->loadData()) {
|
||||||
|
$this->loadDataFrom($currentStep->loadData());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user