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:
Sean Harvey 2009-03-12 01:47:21 +00:00
parent e5712d46ef
commit 9dc761d449

View File

@ -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);
}