Permalink
Browse files

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

  • Loading branch information...
1 parent 7bee470 commit ce05ce78e5727fa76e55874587eb07e3ae4e4c35 @chillu chillu committed Apr 16, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 forms/Form.php
View
@@ -1101,9 +1101,9 @@ function callfieldmethod($data) {
* than <% control FormObject %>
*/
function forTemplate() {
- return $this->renderWith(array(
- $this->getTemplate(),
- 'Form'
+ return $this->renderWith(array_merge(
+ (array)$this->getTemplate(),
+ array('Form')
));
}

0 comments on commit ce05ce7

Please sign in to comment.