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