FIX: make sure session message clears after rendering the template. See Form->forTemplate()

This commit is contained in:
Jeremy Shipman 2014-09-03 16:33:14 +12:00
parent 4d743f3423
commit 8940c2e1bb

View File

@ -372,13 +372,17 @@ abstract class MultiForm extends Form {
* @return SSViewer object to render the template with
*/
function forTemplate() {
return $this->renderWith(array(
$return = $this->renderWith(array(
$this->getCurrentStep()->class,
'MultiFormStep',
$this->class,
'MultiForm',
'Form'
));
$this->clearMessage();
return $return;
}
/**