Merge pull request #23 from jedateach/pr/clear-session-message

FIX: make sure session message clears after rendering the template. .
This commit is contained in:
Will Rossiter 2014-09-03 21:17:23 +12:00
commit 596b67640b

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;
}
/**