mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2123 from willmorgan/forajaxtemplate-session-message
MINOR clear session message whenever forAjaxTemplate is used
This commit is contained in:
commit
cc33427218
@ -1425,8 +1425,13 @@ class Form extends RequestHandler {
|
|||||||
$this->getTemplate(),
|
$this->getTemplate(),
|
||||||
'Form'
|
'Form'
|
||||||
));
|
));
|
||||||
|
|
||||||
return $view->dontRewriteHashlinks()->process($this);
|
$return = $view->dontRewriteHashlinks()->process($this);
|
||||||
|
|
||||||
|
// Now that we're rendered, clear message
|
||||||
|
$this->clearMessage();
|
||||||
|
|
||||||
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user