mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Clearing the session message whenever forAJAXTemplate is used.
This commit is contained in:
parent
94b4237372
commit
a99b430fec
@ -1406,8 +1406,13 @@ class Form extends RequestHandler {
|
||||
$this->getTemplate(),
|
||||
'Form'
|
||||
));
|
||||
|
||||
return $view->dontRewriteHashlinks()->process($this);
|
||||
|
||||
$return = $view->dontRewriteHashlinks()->process($this);
|
||||
|
||||
// Now that we're rendered, clear message
|
||||
$this->clearMessage();
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user