Skip to content

Commit

Permalink
FIX: make sure session message clears after rendering the template. S…
Browse files Browse the repository at this point in the history
…ee Form->forTemplate()
  • Loading branch information
jedateach committed Sep 3, 2014
1 parent 4d743f3 commit 8940c2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/model/MultiForm.php
Expand Up @@ -372,13 +372,17 @@ function actionsFor($step) {
* @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;
}

/**
Expand Down

0 comments on commit 8940c2e

Please sign in to comment.