mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Updated Form->forAjaxTemplate() to select the same templates as Form->forTemplate() that was changed in r72950
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72951 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e5712d46ef
commit
9dc761d449
@ -1002,7 +1002,11 @@ class Form extends RequestHandler {
|
||||
* It triggers slightly different behaviour, such as disabling the rewriting of # links
|
||||
*/
|
||||
function forAjaxTemplate() {
|
||||
$view = new SSViewer($this->getTemplate());
|
||||
$view = new SSViewer(array(
|
||||
$this->getTemplate(),
|
||||
'Form'
|
||||
));
|
||||
|
||||
return $view->dontRewriteHashlinks()->process($this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user