mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Allow alternative (array-based) templates in Form->forTemplate()
This commit is contained in:
parent
7bee470209
commit
ce05ce78e5
@ -1101,9 +1101,9 @@ class Form extends RequestHandler {
|
|||||||
* than <% control FormObject %>
|
* than <% control FormObject %>
|
||||||
*/
|
*/
|
||||||
function forTemplate() {
|
function forTemplate() {
|
||||||
return $this->renderWith(array(
|
return $this->renderWith(array_merge(
|
||||||
$this->getTemplate(),
|
(array)$this->getTemplate(),
|
||||||
'Form'
|
array('Form')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user