ENHANCEMENT prev() now saves the current step data, exactly as next() does

This commit is contained in:
Sean Harvey 2008-06-05 01:13:55 +00:00
parent 4d0e9491cc
commit e4e43ee4af

View File

@ -411,6 +411,9 @@ abstract class MultiForm extends Form {
// Switch the step to the previous!
$prevStepClass = $this->getCurrentStep()->getPreviousStep();
// Save the form data for the current step
$this->save($data);
// Get the previous step of the class instance returned from $currentStep->getPreviousStep()
$prevStep = DataObject::get_one($prevStepClass, "SessionID = {$this->session->ID}");