mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
parent
64d3a3dafc
commit
014f541a89
@ -1319,17 +1319,15 @@ class Form extends RequestHandler {
|
|||||||
* than <% control FormObject %>
|
* than <% control FormObject %>
|
||||||
*/
|
*/
|
||||||
public function forTemplate() {
|
public function forTemplate() {
|
||||||
return $this->renderWith(array_merge(
|
|
||||||
(array)$this->getTemplate(),
|
|
||||||
array('Form')
|
|
||||||
));
|
|
||||||
|
|
||||||
// Now that we're rendered, clear message
|
// Now that we're rendered, clear message
|
||||||
Session::clear("FormInfo.{$this->FormName()}.errors");
|
Session::clear("FormInfo.{$this->FormName()}.errors");
|
||||||
Session::clear("FormInfo.{$this->FormName()}.formError");
|
Session::clear("FormInfo.{$this->FormName()}.formError");
|
||||||
Session::clear("FormInfo.{$this->FormName()}.data");
|
Session::clear("FormInfo.{$this->FormName()}.data");
|
||||||
|
|
||||||
return $result;
|
return $this->renderWith(array_merge(
|
||||||
|
(array)$this->getTemplate(),
|
||||||
|
array('Form')
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user