Revert last change

This commit is contained in:
Sean Harvey 2008-04-30 03:47:33 +00:00
parent 3872ca004c
commit ff9662f9f5

View File

@ -105,8 +105,10 @@ abstract class MultiForm extends Form {
// Set up validator from the form step class
$this->validator = $currentStep->getValidator();
// Load existing data into the form (CAUTION: loadData() MUST unserialize first!)
$this->loadDataFrom($currentStep->loadData());
// If there is form data, we populate it here (CAUTION: loadData() MUST unserialize first!)
if($currentStep->loadData()) {
$this->loadDataFrom($currentStep->loadData());
}
}
/**