mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Merge pull request #13 from mikg0/patch-1
FIX remove obsolete validation error messages (Fixes issue #12)
This commit is contained in:
commit
a0187dc133
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user