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 %>
|
||||
*/
|
||||
function forTemplate() {
|
||||
return $this->renderWith(array(
|
||||
$this->getTemplate(),
|
||||
'Form'
|
||||
return $this->renderWith(array_merge(
|
||||
(array)$this->getTemplate(),
|
||||
array('Form')
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user