mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
FIX: make sure session message clears after rendering the template. See Form->forTemplate()
This commit is contained in:
parent
4d743f3423
commit
8940c2e1bb
@ -372,13 +372,17 @@ abstract class MultiForm extends Form {
|
|||||||
* @return SSViewer object to render the template with
|
* @return SSViewer object to render the template with
|
||||||
*/
|
*/
|
||||||
function forTemplate() {
|
function forTemplate() {
|
||||||
return $this->renderWith(array(
|
$return = $this->renderWith(array(
|
||||||
$this->getCurrentStep()->class,
|
$this->getCurrentStep()->class,
|
||||||
'MultiFormStep',
|
'MultiFormStep',
|
||||||
$this->class,
|
$this->class,
|
||||||
'MultiForm',
|
'MultiForm',
|
||||||
'Form'
|
'Form'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$this->clearMessage();
|
||||||
|
|
||||||
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user