Merge pull request #13 from mikg0/patch-1

FIX remove obsolete validation error messages (Fixes issue #12)
This commit is contained in:
Will Rossiter 2013-05-24 23:20:00 -07:00
commit a0187dc133

View File

@ -436,6 +436,9 @@ abstract class MultiForm extends Form {
return false;
}
// validation succeeded so we reset it to remove errors and messages
$this->resetValidation();
// Determine whether we can use a step already in the DB, or have to create a new one
if(!$nextStep = DataObject::get_one($nextStepClass, "\"SessionID\" = {$this->session->ID}")) {
$nextStep = new $nextStepClass();