mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
BUG Don't call MultiFormStep->loadData() twice
This commit is contained in:
parent
60c69adf7e
commit
5be0c052a5
@ -152,8 +152,8 @@ abstract class MultiForm extends Form {
|
|||||||
|
|
||||||
// If there is saved data for the current step, we load it into the form it here
|
// If there is saved data for the current step, we load it into the form it here
|
||||||
//(CAUTION: loadData() MUST unserialize first!)
|
//(CAUTION: loadData() MUST unserialize first!)
|
||||||
if($currentStep->loadData()) {
|
if($data = $currentStep->loadData()) {
|
||||||
$this->loadDataFrom($currentStep->loadData());
|
$this->loadDataFrom($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable security token - we tie a form to a session ID instead
|
// Disable security token - we tie a form to a session ID instead
|
||||||
|
Loading…
Reference in New Issue
Block a user