Navigation Menu

Skip to content

Commit

Permalink
BUG Form session message clearing regression
Browse files Browse the repository at this point in the history
Regression originally from 729bcc9, but made visible by 014f541
  • Loading branch information
chillu committed Jan 21, 2013
1 parent 3d921e7 commit 5d37d55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions forms/Form.php
Expand Up @@ -1319,15 +1319,15 @@ public function callfieldmethod($data) {
* than <% control FormObject %>
*/
public function forTemplate() {
// Now that we're rendered, clear message
Session::clear("FormInfo.{$this->FormName()}.errors");
Session::clear("FormInfo.{$this->FormName()}.formError");
Session::clear("FormInfo.{$this->FormName()}.data");

return $this->renderWith(array_merge(
$return = $this->renderWith(array_merge(
(array)$this->getTemplate(),
array('Form')
));

// Now that we're rendered, clear message
$this->clearMessage();

return $return;
}

/**
Expand Down

0 comments on commit 5d37d55

Please sign in to comment.