BUG Don't call MultiFormStep->loadData() twice

This commit is contained in:
Ingo Schommer 2012-09-26 23:50:13 +02:00
parent 60c69adf7e
commit 5be0c052a5

View File

@ -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
//(CAUTION: loadData() MUST unserialize first!)
if($currentStep->loadData()) {
$this->loadDataFrom($currentStep->loadData());
if($data = $currentStep->loadData()) {
$this->loadDataFrom($data);
}
// Disable security token - we tie a form to a session ID instead