BUGFIX Allow alternative (array-based) templates in Form->forTemplate()

This commit is contained in:
Ingo Schommer 2011-04-16 17:52:10 +12:00
parent 7bee470209
commit ce05ce78e5

View File

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